homebridge-deconz 1.2.8 → 1.2.9

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.
@@ -26,7 +26,7 @@ class Light extends DeconzService.LightsResource {
26
26
  this.resource.body[this.stateKey].hue !== undefined,
27
27
  xy: this.resource.body[this.stateKey].xy !== undefined
28
28
  }
29
- if (this.resource.body.action?.effect !== undefined) {
29
+ if (this.resource.body?.action?.effect !== undefined) {
30
30
  this.capabilities.colorLoop = true
31
31
  } else if (this.resource.body?.capabilities?.color?.effects != null) {
32
32
  const effects = this.resource.body.capabilities.color.effects
@@ -78,7 +78,7 @@ class Light extends DeconzService.LightsResource {
78
78
  }
79
79
  })
80
80
 
81
- if (!this.resource.body.capabilities.bri.no_bri_inc) {
81
+ if (!this.resource.body?.capabilities?.bri?.no_bri_inc) {
82
82
  this.addCharacteristicDelegate({
83
83
  key: 'brightnessChange',
84
84
  Characteristic: this.Characteristics.my.BrightnessChange,
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "ebaauw"
8
8
  ],
9
9
  "license": "Apache-2.0",
10
- "version": "1.2.8",
10
+ "version": "1.2.9",
11
11
  "keywords": [
12
12
  "homebridge-plugin",
13
13
  "homekit",