Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. 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
  2. diff --git a/in.js b/home/pi/node-red-contrib-deconz/nodes/in.js
  3. index 6cc9d7f..84dda6e 100644
  4. --- a/in.js
  5. +++ b/home/pi/node-red-contrib-deconz/nodes/in.js
  6. @@ -86,8 +86,8 @@ module.exports = function(RED) {
  7. text: (node.config.state in device.state) ? device.state[node.config.state] : "connected"
  8. });
  9. }
  10. - if (node.oldState === undefined && device.state[node.config.state] && !node.config.outputAtStartup ) { node.oldState = device.state[node.config.state]; }
  11. - if (node.prevUpdateTime === undefined && device.state['lastupdated'] && !node.config.outputAtStartup) { node.prevUpdateTime = device.state['lastupdated']; }
  12. + if (node.oldState === undefined && device.state[node.config.state]) { node.oldState = device.state[node.config.state]; }
  13. + if (node.prevUpdateTime === undefined && device.state['lastupdated']) { node.prevUpdateTime = device.state['lastupdated']; }
  14. return(device)
  15. }
  16. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement