homebridge-nb 1.5.13 → 1.5.14

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.
Files changed (2) hide show
  1. package/lib/NbPlatform.js +3 -20
  2. package/package.json +4 -4
package/lib/NbPlatform.js CHANGED
@@ -244,26 +244,9 @@ class NbPlatform extends Platform {
244
244
  }
245
245
  switch (className) {
246
246
  case 'Bridge':
247
- {
248
- context.id = id
249
- // Dirty hack en lieu of patching cachedAccessories
250
- let needPatch = false
251
- if (name.startsWith('Nuki_Bridge_')) {
252
- name = name.replace(/_/g, ' ')
253
- needPatch = true
254
- }
255
- // End hack
256
- context.name = name
257
- this.bridges[id] = new NbAccessory.Bridge(this, context)
258
- // Dirty hack en lieu of patching cachedAccessories
259
- if (needPatch) {
260
- this.bridges[id]._accessory._associatedHAPAccessory.displayName = name
261
- this.bridges[id]._context.name = name
262
- this.bridges[id].service.values.configuredName = name
263
- this.bridges[id].dummyService.values.configuredName = name
264
- }
265
- // End hack
266
- }
247
+ context.id = id
248
+ context.name = name
249
+ this.bridges[id] = new NbAccessory.Bridge(this, context)
267
250
  break
268
251
  case 'SmartLock':
269
252
  case 'DoorSensor':
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "ebaauw"
8
8
  ],
9
9
  "license": "Apache-2.0",
10
- "version": "1.5.13",
10
+ "version": "1.5.14",
11
11
  "keywords": [
12
12
  "homebridge-plugin",
13
13
  "homekit",
@@ -22,13 +22,13 @@
22
22
  "nb": "cli/nb.js"
23
23
  },
24
24
  "engines": {
25
- "homebridge": "^2.0.1",
25
+ "homebridge": "^2.1.0",
26
26
  "node": "^24||^22",
27
27
  "nuki": "2.18.0"
28
28
  },
29
29
  "dependencies": {
30
- "homebridge-lib": "~8.1.0",
31
- "hb-nb-tools": "~2.1.1"
30
+ "homebridge-lib": "~8.1.1",
31
+ "hb-nb-tools": "~2.1.2"
32
32
  },
33
33
  "scripts": {
34
34
  "prepare": "standard",