node-red-contrib-deconz
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -254,12 +254,14 @@ var request = require('request'); | ||
var node = RED.nodes.getNode(nodeId); | ||
node.status({ | ||
fill: "green", | ||
shape: "dot", | ||
text: (node.config.state_key in dataParsed.state) ? dataParsed.state[node.config.state_key] : "connected" | ||
}); | ||
if (node) { | ||
node.status({ | ||
fill: "green", | ||
shape: "dot", | ||
text: (node.config.state_key in dataParsed.state) ? dataParsed.state[node.config.state_key] : "connected" | ||
}); | ||
node.send({ | ||
payload: (node.config.state_key in dataParsed.state) ? dataParsed.state[node.config.state_key] : dataParsed.state, | ||
event: dataParsed | ||
}); | ||
node.send({ | ||
payload: (node.config.state_key in dataParsed.state) ? dataParsed.state[node.config.state_key] : dataParsed.state, | ||
event: dataParsed | ||
}); | ||
} | ||
} | ||
@@ -266,0 +268,0 @@ } |
@@ -34,3 +34,3 @@ { | ||
}, | ||
"version": "0.1.3" | ||
"version": "0.1.4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
505277
1768