homebridge-denon-tv 3.20.2 → 3.20.3

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/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -279,7 +279,7 @@ class denonTvDevice {
279
279
  }
280
280
 
281
281
  if (this.sensorVolumeService) {
282
- const state = (this.volume !== volume) ? true : false;
282
+ const state = power ? (this.volume !== volume) : false;
283
283
  this.sensorVolumeService
284
284
  .updateCharacteristic(Characteristic.ContactSensorState, state)
285
285
  this.sensorVolumeState = state;
@@ -292,7 +292,7 @@ class denonTvDevice {
292
292
  }
293
293
 
294
294
  if (this.sensorInputService) {
295
- const state = (this.inputIdentifier !== inputIdentifier) ? true : false;
295
+ const state = power ? (this.inputIdentifier !== inputIdentifier) : false;
296
296
  this.sensorInputService
297
297
  .updateCharacteristic(Characteristic.ContactSensorState, state)
298
298
  this.sensorInputState = state;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Denon TV",
3
3
  "name": "homebridge-denon-tv",
4
- "version": "3.20.2",
4
+ "version": "3.20.3",
5
5
  "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Denon/Marantz AV Receivers.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",