From 8a7a74b1023e0ddb9d699afe4b9befc1e95caf82 Mon Sep 17 00:00:00 2001 From: hobbyquaker Date: Sat, 13 Apr 2019 17:47:35 +0200 Subject: [PATCH] set status before sending message to output (#77) --- nodes/ccu-sysvar.js | 2 +- nodes/ccu-value.js | 2 +- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nodes/ccu-sysvar.js b/nodes/ccu-sysvar.js index fe22180..9c42fc9 100644 --- a/nodes/ccu-sysvar.js +++ b/nodes/ccu-sysvar.js @@ -29,9 +29,9 @@ module.exports = function (RED) { this.topic = config.topic; this.idSubscription = this.ccu.subscribeSysvar({name: this.name, cache: config.cache, change: config.change}, msg => { + this.status({fill: 'green', shape: 'ring', text: String(msg.payload)}); msg.topic = this.ccu.topicReplace(config.topic, msg); this.send(msg); - this.status({fill: 'green', shape: 'ring', text: String(msg.payload)}); }); this.on('input', this._input); diff --git a/nodes/ccu-value.js b/nodes/ccu-value.js index 986e65e..3fbd2e0 100644 --- a/nodes/ccu-value.js +++ b/nodes/ccu-value.js @@ -29,9 +29,9 @@ module.exports = function (RED) { }; this.idSubscription = this.ccu.subscribe(filter, msg => { + this.status({fill: 'green', shape: 'ring', text: String(msg.payload)}); msg.topic = this.ccu.topicReplace(config.topic, msg); this.send(msg); - this.status({fill: 'green', shape: 'ring', text: String(msg.payload)}); }); } diff --git a/package-lock.json b/package-lock.json index ca8f7f9..217a996 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-ccu", - "version": "2.0.11", + "version": "2.0.12", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0d75290..04c424b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-ccu", - "version": "2.0.11", + "version": "2.0.12", "description": "Node-RED Nodes for the Homematic CCU", "repository": "https://github.com/rdmtc/node-red-contrib-ccu", "keywords": [