Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@hassio:/usr/share/hassio/homeassistant/node-red/node_modules/node-red-contrib-deconz/nodes# git diff -u in.js /home/pi/node-red-contrib-deconz/nodes/in.js
- diff --git a/in.js b/home/pi/node-red-contrib-deconz/nodes/in.js
- index 6cc9d7f..84dda6e 100644
- --- a/in.js
- +++ b/home/pi/node-red-contrib-deconz/nodes/in.js
- @@ -86,8 +86,8 @@ module.exports = function(RED) {
- text: (node.config.state in device.state) ? device.state[node.config.state] : "connected"
- });
- }
- - if (node.oldState === undefined && device.state[node.config.state] && !node.config.outputAtStartup ) { node.oldState = device.state[node.config.state]; }
- - if (node.prevUpdateTime === undefined && device.state['lastupdated'] && !node.config.outputAtStartup) { node.prevUpdateTime = device.state['lastupdated']; }
- + if (node.oldState === undefined && device.state[node.config.state]) { node.oldState = device.state[node.config.state]; }
- + if (node.prevUpdateTime === undefined && device.state['lastupdated']) { node.prevUpdateTime = device.state['lastupdated']; }
- return(device)
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement