hb-nb-tools 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/NbClient.js +2 -6
- package/package.json +3 -3
package/lib/NbClient.js
CHANGED
|
@@ -86,16 +86,12 @@ class NbClient extends HttpClient {
|
|
|
86
86
|
static modelName (deviceType, firmware) {
|
|
87
87
|
switch (deviceType) {
|
|
88
88
|
case NbClient.DeviceTypes.SMARTLOCK:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
return 'Smart Lock 2.0'
|
|
89
|
+
case NbClient.DeviceTypes.SMARTLOCK3:
|
|
90
|
+
return 'Smart Lock ' + firmware[0]
|
|
93
91
|
case NbClient.DeviceTypes.OPENER:
|
|
94
92
|
return 'Opener'
|
|
95
93
|
case NbClient.DeviceTypes.SMARTDOOR:
|
|
96
94
|
return 'Smart Door'
|
|
97
|
-
case NbClient.DeviceTypes.SMARTLOCK3:
|
|
98
|
-
return 'Smart Lock 3.0'
|
|
99
95
|
}
|
|
100
96
|
}
|
|
101
97
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Homebridge NB Tools",
|
|
4
4
|
"author": "Erik Baauw",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"version": "1.1.
|
|
6
|
+
"version": "1.1.11",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"nuki",
|
|
9
9
|
"smart-lock",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"nb": "cli/nb.js"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": "20.
|
|
17
|
+
"node": "20.10.0||^20||^18"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"hb-lib-tools": "~1.1
|
|
20
|
+
"hb-lib-tools": "~1.2.1",
|
|
21
21
|
"tweetnacl": "~1.0.3"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|