Skip to content

Commit

Permalink
fix: always include endpoint in topic when using named topics #69
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Dec 14, 2020
1 parent 36638d2 commit c5a467a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Gateway.js
Expand Up @@ -819,9 +819,7 @@ Gateway.prototype.valueTopic = function (node, valueId, returnObject = false) {
topic.push(node.name ? node.name : NODE_PREFIX + valueId.nodeId)
topic.push(Constants.commandClass(valueId.commandClass))

if (valueId.endpoint > 0) {
topic.push('endpoint_' + valueId.endpoint)
}
topic.push('endpoint_' + (valueId.endpoint || 0))

topic.push(valueId.propertyName)
if (valueId.propertyKey) {
Expand Down

0 comments on commit c5a467a

Please sign in to comment.