homebridge-nb 1.4.7 → 1.4.8

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.
@@ -70,7 +70,7 @@ class Bridge extends AccessoryDelegate {
70
70
  })
71
71
  .on('event', (event) => {
72
72
  this.debug('event: %j', event)
73
- const id = event.nukiId.toString(16).toUpperCase()
73
+ const id = toHexString(event.nukiId)
74
74
  switch (event.deviceType) {
75
75
  case NbClient.DeviceTypes.SMARTLOCK:
76
76
  case NbClient.DeviceTypes.SMARTDOOR:
@@ -266,7 +266,7 @@ class Bridge extends AccessoryDelegate {
266
266
  if (device.firmwareVersion == null) { // Issue 93.
267
267
  continue
268
268
  }
269
- const id = toHexString(device.nukiId, 8)
269
+ const id = toHexString(device.nukiId)
270
270
  if (!this.platform.isWhitelisted(id)) {
271
271
  continue
272
272
  }
package/lib/NbPlatform.js CHANGED
@@ -43,7 +43,7 @@ class NbPlatform extends Platform {
43
43
  const device = OptionParser.toInt(
44
44
  `devices[${i}]`, this.config.devices[i], 0x10000000, 0xFFFFFFFF, true
45
45
  )
46
- validDevices.push(device.toString(16).toUpperCase())
46
+ validDevices.push(toHexString(device))
47
47
  } catch (error) {
48
48
  if (error instanceof OptionParser.UserInputError) {
49
49
  this.warn(error)
@@ -162,7 +162,7 @@ class NbPlatform extends Platform {
162
162
  if (bridge.ip == null || bridge.port == null) {
163
163
  return
164
164
  }
165
- const id = toHexString(bridge.bridgeId, 8)
165
+ const id = toHexString(bridge.bridgeId)
166
166
  if (!this.isWhitelisted(id)) {
167
167
  return
168
168
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName": "Homebridge NB",
5
5
  "author": "Erik Baauw",
6
6
  "license": "Apache-2.0",
7
- "version": "1.4.7",
7
+ "version": "1.4.8",
8
8
  "keywords": [
9
9
  "homebridge-plugin",
10
10
  "homekit",
@@ -23,8 +23,8 @@
23
23
  "nuki": "2.15.0"
24
24
  },
25
25
  "dependencies": {
26
- "homebridge-lib": "~6.4.1",
27
- "hb-nb-tools": "~1.1.5"
26
+ "homebridge-lib": "~6.5.0",
27
+ "hb-nb-tools": "~1.1.7"
28
28
  },
29
29
  "scripts": {
30
30
  "prepare": "standard",