Skip to content

Commit e0373b7

Browse files
Fix Backup
1 parent 66235a8 commit e0373b7

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# node-red-contrib-zwave-js Change Log
22

3+
- 9.1.1
4+
5+
**Bug Fixes**
6+
- Fix NVM Backup
7+
38
- 9.1.0
49

510
**Changes**

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "node-red-contrib-zwave-js",
3-
"version": "9.1.0",
3+
"version": "9.1.1",
44
"license": "MIT",
55
"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.",
66
"dependencies": {
77
"limiter": "^2.1.0",
88
"lodash": "^4.17.21",
99
"winston": "^3.17.0",
1010
"winston-transport": "^4.9.0",
11-
"zwave-js": "^14.3.3"
11+
"zwave-js": "^14.3.7"
1212
},
1313
"devDependencies": {
1414
"eslint": "^9.15.0",
@@ -61,4 +61,4 @@
6161
"url": "https://github.com/zwave-js/node-red-contrib-zwave-js/issues"
6262
},
6363
"homepage": "https://github.com/zwave-js/node-red-contrib-zwave-js#readme"
64-
}
64+
}

resources/UITab/client.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2732,7 +2732,7 @@ const ZwaveJsUI = (function () {
27322732
EnableCritical(true);
27332733
$('#NVMProgressLabel').html('Backing up NVM Completed');
27342734

2735-
const Bytes = new Uint8Array(data.payload.data);
2735+
const Bytes = new Uint8Array(Object.values(data.payload));
27362736
const blob = new Blob([Bytes], {
27372737
type: 'application/octet-stream'
27382738
});
@@ -2981,12 +2981,12 @@ const ZwaveJsUI = (function () {
29812981
node.powerSource.level > 90
29822982
? (Class = 'fa fa-battery-full')
29832983
: node.powerSource.level > 65
2984-
? (Class = 'fa fa-battery-three-quarters')
2985-
: node.powerSource.level > 35
2986-
? (Class = 'fa fa-battery-half')
2987-
: node.powerSource.level > 10
2988-
? (Class = 'fa fa-battery-quarter')
2989-
: (Class = 'fa fa-battery-empty');
2984+
? (Class = 'fa fa-battery-three-quarters')
2985+
: node.powerSource.level > 35
2986+
? (Class = 'fa fa-battery-half')
2987+
: node.powerSource.level > 10
2988+
? (Class = 'fa fa-battery-quarter')
2989+
: (Class = 'fa fa-battery-empty');
29902990

29912991
if (node.powerSource.isLow) {
29922992
i.css({ color: 'red' });
@@ -3737,12 +3737,12 @@ const ZwaveJsUI = (function () {
37373737
data.payload.newValue > 90
37383738
? (Class = 'fa fa-battery-full')
37393739
: data.payload.newValue > 65
3740-
? (Class = 'fa fa-battery-three-quarters')
3741-
: data.payload.newValue > 35
3742-
? (Class = 'fa fa-battery-half')
3743-
: data.payload.newValue > 10
3744-
? (Class = 'fa fa-battery-quarter')
3745-
: (Class = 'fa fa-battery-empty');
3740+
? (Class = 'fa fa-battery-three-quarters')
3741+
: data.payload.newValue > 35
3742+
? (Class = 'fa fa-battery-half')
3743+
: data.payload.newValue > 10
3744+
? (Class = 'fa fa-battery-quarter')
3745+
: (Class = 'fa fa-battery-empty');
37463746
BatterySymbol.removeClass();
37473747
BatterySymbol.addClass(Class);
37483748
BatteryUIElements[data.node].setContent(

0 commit comments

Comments
 (0)