Skip to content

Commit

Permalink
Maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-j-davies committed Dec 6, 2023
1 parent 5ef93ab commit 716eeb7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# node-red-contrib-zwave-js Change Log


- 9.0.3

**Maintenance Release**
- Update dependencies
- Update Node/UI status with regards to Route Rebuilding

- 9.0.2

**Bug Fixes**
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "node-red-contrib-zwave-js",
"version": "9.0.2",
"version": "9.0.3",
"license": "MIT",
"description": "The most powerful, high performing and highly polished Z-Wave node for Node-RED based on Z-Wave JS. If you want a fully featured Z-Wave framework in your Node-RED instance, you have found it.",
"dependencies": {
"limiter": "^2.1.0",
"lodash": "^4.17.21",
"winston": "^3.11.0",
"winston-transport": "^4.6.0",
"zwave-js": "^12.1.1"
"zwave-js": "^12.4.0"
},
"devDependencies": {
"eslint": "^8.51.0",
"prettier": "^3.0.3"
"eslint": "^8.55.0",
"prettier": "^3.1.0"
},
"scripts": {
"validate": "node-red-dev validate -o validation_result.json"
Expand Down
22 changes: 11 additions & 11 deletions zwave-js/zwave-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -1212,26 +1212,26 @@ module.exports = function (RED) {
SetFlowNodeStatus({
fill: 'yellow',
shape: 'dot',
text: 'Node Heal Started: ' + Params[0]
text: 'Rebuild Node Routes Started: ' + Params[0]
});
UI.Status('Node Heal Started: ' + Params[0]);
UI.Status('Rebuild Node Routes Started: ' + Params[0]);
const HealResponse = await Driver.controller.rebuildNodeRoutes(
Params[0]
);
if (HealResponse) {
SetFlowNodeStatus({
fill: 'green',
shape: 'dot',
text: 'Node Heal Successful: ' + Params[0]
text: 'Rebuild Node Routes Successful: ' + Params[0]
});
UI.Status('Node Heal Successful: ' + Params[0]);
UI.Status('Rebuild Node Routes Successful ' + Params[0]);
} else {
SetFlowNodeStatus({
fill: 'red',
shape: 'dot',
text: 'Node Heal Unsuccessful: ' + Params[0]
text: 'Rebuild Node Routes Unsuccessful: ' + Params[0]
});
UI.Status('Node Heal Unsuccessful: ' + Params[0]);
UI.Status('Rebuild Node Routes Unsuccessful: ' + Params[0]);
}
Send(
ReturnNode,
Expand All @@ -1248,9 +1248,9 @@ module.exports = function (RED) {
SetFlowNodeStatus({
fill: 'yellow',
shape: 'dot',
text: 'Network Heal Started.'
text: 'Route Rebuilding Started.'
});
UI.Status('Network Heal Started.');
UI.Status('Route Rebuilding Started.');
break;

case 'stopRebuildingRoutes':
Expand All @@ -1259,9 +1259,9 @@ module.exports = function (RED) {
SetFlowNodeStatus({
fill: 'blue',
shape: 'dot',
text: 'Network Heal Stopped.'
text: 'Route Rebuilding Stopped.'
});
UI.Status('Network Heal Stopped.');
UI.Status('Route Rebuilding Stopped.');
RestoreReadyStatus();
break;

Expand Down Expand Up @@ -1930,7 +1930,7 @@ module.exports = function (RED) {
'VALUE_ID_LIST',
'GET_VALUE_RESPONSE',
'GET_VALUE_METADATA_RESPONSE',
"VALUE_TIMESTAMP"
'VALUE_TIMESTAMP'
];

const TimestampSubjects = [
Expand Down

0 comments on commit 716eeb7

Please sign in to comment.