Skip to content

Commit

Permalink
set status before sending message to output (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Apr 13, 2019
1 parent 6ba0778 commit 8a7a74b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nodes/ccu-sysvar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion nodes/ccu-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)});
});
}

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit 8a7a74b

Please sign in to comment.