refactor(socket): move on/off to dedicated actions
This commit is contained in:
1 parent
a33d616516
commit
8a40a6ad54
11 files changed
+715
-66
No files matched your search
@@ -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") {
|
||||
|
||||
Reference in new issue
Block a user