2
0

refactor(socket): move on/off to dedicated actions

This commit is contained in:
Pierre CLEMENT
2018-01-03 13:05:01 +01:00
parent a33d616516
commit 8a40a6ad54
11 changed files with 715 additions and 66 deletions

View File

@@ -18,7 +18,7 @@ module.exports = (RED) => {
this.plug = plug;
this.status({fill:"green", shape:"dot", text:"connected"});
connectionState = "connected";
delayedStatusMsgUpdate(node);
delayedStatusMsgUpdate(this);
this.plug.on('propertyChanged', (e) => {
if (e.property === "power") {