homebridge-denon-tv 3.20.0 → 3.20.2
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.
- package/config.schema.json +0 -4
- package/index.js +2 -2
- package/package.json +1 -1
- package/src/denon.js +1 -1
package/config.schema.json
CHANGED
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"type": "integer",
|
|
38
38
|
"minimum": 0,
|
|
39
39
|
"maximum": 3,
|
|
40
|
-
"default": 0,
|
|
41
40
|
"description": "Here select which Zone You want control.",
|
|
42
41
|
"oneOf": [
|
|
43
42
|
{
|
|
@@ -72,7 +71,6 @@
|
|
|
72
71
|
"type": "integer",
|
|
73
72
|
"minimum": 0,
|
|
74
73
|
"maximum": 2,
|
|
75
|
-
"default": 0,
|
|
76
74
|
"description": "Here select what a volume control mode You want to use. If select *None* only hardware buttons in RC app can be used to control volume.",
|
|
77
75
|
"oneOf": [
|
|
78
76
|
{
|
|
@@ -579,7 +577,6 @@
|
|
|
579
577
|
"displayType": {
|
|
580
578
|
"title": "Extra Input Tile Type",
|
|
581
579
|
"type": "integer",
|
|
582
|
-
"default": -1,
|
|
583
580
|
"oneOf": [
|
|
584
581
|
{
|
|
585
582
|
"title": "None",
|
|
@@ -793,7 +790,6 @@
|
|
|
793
790
|
"displayType": {
|
|
794
791
|
"title": "Extra Surround Tile Type",
|
|
795
792
|
"type": "integer",
|
|
796
|
-
"default": -1,
|
|
797
793
|
"oneOf": [
|
|
798
794
|
{
|
|
799
795
|
"title": "None",
|
package/index.js
CHANGED
|
@@ -65,7 +65,7 @@ class denonTvDevice {
|
|
|
65
65
|
this.name = config.name;
|
|
66
66
|
this.host = config.host;
|
|
67
67
|
this.port = config.port;
|
|
68
|
-
this.zoneControl = config.zoneControl;
|
|
68
|
+
this.zoneControl = config.zoneControl || 0;
|
|
69
69
|
this.volumeControl = config.volumeControl || 0;
|
|
70
70
|
this.infoButtonCommand = config.infoButtonCommand || 'MNINF';
|
|
71
71
|
this.masterPower = config.masterPower || false;
|
|
@@ -843,7 +843,7 @@ class denonTvDevice {
|
|
|
843
843
|
this.inputsType.push(inputType);
|
|
844
844
|
this.inputsMode.push(inputMode);
|
|
845
845
|
this.inputsSwitchsSensorsDisplayType.push(inputSwitchSensorDisplayType);
|
|
846
|
-
const pushInputSwitchIndex = inputSwitchSensorDisplayType
|
|
846
|
+
const pushInputSwitchIndex = inputSwitchSensorDisplayType >= 0 ? this.inputsSwitchesSensors.push(i) : false;
|
|
847
847
|
|
|
848
848
|
this.televisionService.addLinkedService(inputService);
|
|
849
849
|
accessory.addService(inputService);
|
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.
|
|
4
|
+
"version": "3.20.2",
|
|
5
5
|
"description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Denon/Marantz AV Receivers.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
package/src/denon.js
CHANGED
|
@@ -99,7 +99,7 @@ class DENON extends EventEmitter {
|
|
|
99
99
|
const volume = (parseFloat(devState.MasterVolume[0].value[0]) >= -79.5) ? parseInt(devState.MasterVolume[0].value[0]) + 80 : this.volume;
|
|
100
100
|
const mute = power ? (devState.Mute[0].value[0] == 'on') : true;
|
|
101
101
|
|
|
102
|
-
if (this.checkStateOnFirstRun && power
|
|
102
|
+
if (!this.checkStateOnFirstRun && power === this.power && reference === this.reference && volume === this.volume && mute === this.mute && soundMode === this.soundMode) {
|
|
103
103
|
this.checkState();
|
|
104
104
|
return;
|
|
105
105
|
};
|