Skip to content

Commit

Permalink
Fix Backup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-j-davies committed Dec 17, 2024
1 parent 66235a8 commit e0373b7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# node-red-contrib-zwave-js Change Log

- 9.1.1

**Bug Fixes**
- Fix NVM Backup

- 9.1.0

**Changes**
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "node-red-contrib-zwave-js",
"version": "9.1.0",
"version": "9.1.1",
"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.17.0",
"winston-transport": "^4.9.0",
"zwave-js": "^14.3.3"
"zwave-js": "^14.3.7"
},
"devDependencies": {
"eslint": "^9.15.0",
Expand Down Expand Up @@ -61,4 +61,4 @@
"url": "https://github.com/zwave-js/node-red-contrib-zwave-js/issues"
},
"homepage": "https://github.com/zwave-js/node-red-contrib-zwave-js#readme"
}
}
26 changes: 13 additions & 13 deletions resources/UITab/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2732,7 +2732,7 @@ const ZwaveJsUI = (function () {
EnableCritical(true);
$('#NVMProgressLabel').html('Backing up NVM Completed');

const Bytes = new Uint8Array(data.payload.data);
const Bytes = new Uint8Array(Object.values(data.payload));
const blob = new Blob([Bytes], {
type: 'application/octet-stream'
});
Expand Down Expand Up @@ -2981,12 +2981,12 @@ const ZwaveJsUI = (function () {
node.powerSource.level > 90
? (Class = 'fa fa-battery-full')
: node.powerSource.level > 65
? (Class = 'fa fa-battery-three-quarters')
: node.powerSource.level > 35
? (Class = 'fa fa-battery-half')
: node.powerSource.level > 10
? (Class = 'fa fa-battery-quarter')
: (Class = 'fa fa-battery-empty');
? (Class = 'fa fa-battery-three-quarters')
: node.powerSource.level > 35
? (Class = 'fa fa-battery-half')
: node.powerSource.level > 10
? (Class = 'fa fa-battery-quarter')
: (Class = 'fa fa-battery-empty');

if (node.powerSource.isLow) {
i.css({ color: 'red' });
Expand Down Expand Up @@ -3737,12 +3737,12 @@ const ZwaveJsUI = (function () {
data.payload.newValue > 90
? (Class = 'fa fa-battery-full')
: data.payload.newValue > 65
? (Class = 'fa fa-battery-three-quarters')
: data.payload.newValue > 35
? (Class = 'fa fa-battery-half')
: data.payload.newValue > 10
? (Class = 'fa fa-battery-quarter')
: (Class = 'fa fa-battery-empty');
? (Class = 'fa fa-battery-three-quarters')
: data.payload.newValue > 35
? (Class = 'fa fa-battery-half')
: data.payload.newValue > 10
? (Class = 'fa fa-battery-quarter')
: (Class = 'fa fa-battery-empty');
BatterySymbol.removeClass();
BatterySymbol.addClass(Class);
BatteryUIElements[data.node].setContent(
Expand Down

0 comments on commit e0373b7

Please sign in to comment.