homebridge-lib 7.0.3 → 7.0.5-0

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.
@@ -51,7 +51,7 @@ class Battery extends ServiceDelegate {
51
51
  */
52
52
  constructor (accessoryDelegate, params = {}) {
53
53
  params.name = accessoryDelegate.name + ' Battery'
54
- params.Service = accessoryDelegate.Services.hap.BatteryService
54
+ params.Service = accessoryDelegate.Services.hap.Battery
55
55
  super(accessoryDelegate, params)
56
56
  if (params.batteryLevel !== undefined) {
57
57
  this.addCharacteristicDelegate({
@@ -73,7 +73,7 @@ class ServiceDelegate extends Delegate {
73
73
  // Get or create associated Service.
74
74
  this._service = params.subtype == null
75
75
  ? this._accessory.getService(params.Service)
76
- : this._accessory.getServiceByUUIDAndSubType(params.Service, params.subtype)
76
+ : this._accessory.getServiceById(params.Service, params.subtype)
77
77
  if (this._service == null) {
78
78
  this._service = this._accessory.addService(
79
79
  new params.Service(null, params.subtype)
package/package.json CHANGED
@@ -2,8 +2,11 @@
2
2
  "name": "homebridge-lib",
3
3
  "description": "Library for homebridge plugins",
4
4
  "author": "Erik Baauw",
5
+ "maintainers": [
6
+ "ebaauw"
7
+ ],
5
8
  "license": "Apache-2.0",
6
- "version": "7.0.3",
9
+ "version": "7.0.5-0",
7
10
  "keywords": [
8
11
  "homekit",
9
12
  "homebridge"
@@ -26,12 +29,12 @@
26
29
  "upnp": "cli/upnp.js"
27
30
  },
28
31
  "engines": {
29
- "homebridge": "^1.8.2",
30
- "node": "20.14.0||^20||^18"
32
+ "homebridge": "^1.8.4||^2.0.0-beta",
33
+ "node": "20.16.0||^20||^18"
31
34
  },
32
35
  "dependencies": {
33
36
  "@homebridge/plugin-ui-utils": "~1.0.3",
34
- "hb-lib-tools": "~2.0.2"
37
+ "hb-lib-tools": "~2.0.4"
35
38
  },
36
39
  "scripts": {
37
40
  "prepare": "standard && rm -rf out && jsdoc -c jsdoc.json",