homebridge-denon-tv 4.0.2-beta.21 → 4.0.2-beta.23

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/CHANGELOG.md CHANGED
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
  ## [4.1.0] - (25.02.2023)
12
12
  ## Changes
13
13
  - added support for old AVR like AVR-3311CI and other in same line
14
+ - prevent HB crash if for some reason prepare accessory returned error
14
15
  - config.schema updated
15
16
  - code cleanup
16
17
 
@@ -66,6 +66,13 @@
66
66
  ],
67
67
  "required": true
68
68
  },
69
+ "supportOldAvr": {
70
+ "title": "Support old AVR",
71
+ "type": "boolean",
72
+ "default": false,
73
+ "description": "This enable compatibility for old AVR like AVR-3311CI.",
74
+ "required": false
75
+ },
69
76
  "getInputsFromDevice": {
70
77
  "title": "Load Inputs From Device",
71
78
  "type": "boolean",
@@ -77,17 +84,17 @@
77
84
  "title": "Load Favorites",
78
85
  "type": "boolean",
79
86
  "default": false,
80
- "description": "If enabled, Favorites will be loaded to the inputs list if exist.",
87
+ "description": "If enabled, Favorites will be loaded to the inputs list if exist (old AVR not supported).",
81
88
  "required": false,
82
89
  "condition": {
83
- "functionBody": "return model.devices[arrayIndices].getInputsFromDevice === true;"
90
+ "functionBody": "return model.devices[arrayIndices].getInputsFromDevice === true && eturn model.devices[arrayIndices].supportOldAvr === false;"
84
91
  }
85
92
  },
86
93
  "getQuickSelectFromDevice": {
87
94
  "title": "Load Quick Select",
88
95
  "type": "boolean",
89
96
  "default": false,
90
- "description": "If enabled, Quick Select will be loaded to the inputs list if exist.",
97
+ "description": "If enabled, Quick Select will be loaded to the inputs list if exist (old AVR not supported).",
91
98
  "required": false,
92
99
  "condition": {
93
100
  "functionBody": "return model.devices[arrayIndices].getInputsFromDevice === true;"
@@ -97,7 +104,7 @@
97
104
  "title": "Load Smart Select",
98
105
  "type": "boolean",
99
106
  "default": false,
100
- "description": "If enabled, Smart Select will be loaded to the inputs list if exist.",
107
+ "description": "If enabled, Smart Select will be loaded to the inputs list if exist (old AVR not supported).",
101
108
  "required": false,
102
109
  "condition": {
103
110
  "functionBody": "return model.devices[arrayIndices].getInputsFromDevice === true;"
@@ -107,7 +114,7 @@
107
114
  "title": "Load Schortcuts",
108
115
  "type": "boolean",
109
116
  "default": false,
110
- "description": "If enabled,*Sshortcuts* will be loaded to the inputs list if exist.",
117
+ "description": "If enabled,*Sshortcuts* will be loaded to the inputs list if exist (old AVR not supported).",
111
118
  "required": false,
112
119
  "condition": {
113
120
  "functionBody": "return model.devices[arrayIndices].getInputsFromDevice === true;"
@@ -4495,13 +4502,6 @@
4495
4502
  "description": "This disable logging device connect error.",
4496
4503
  "required": false
4497
4504
  },
4498
- "supportOldAvr": {
4499
- "title": "Support old AVR",
4500
- "type": "boolean",
4501
- "default": false,
4502
- "description": "This enable compatibility for old AVR like AVR-3311CI.",
4503
- "required": false
4504
- },
4505
4505
  "masterPower": {
4506
4506
  "title": "Master Power Control",
4507
4507
  "type": "boolean",
@@ -4677,6 +4677,7 @@
4677
4677
  "devices[].host",
4678
4678
  "devices[].port",
4679
4679
  "devices[].zoneControl",
4680
+ "devices[].supportOldAvr",
4680
4681
  {
4681
4682
  "key": "devices[]",
4682
4683
  "type": "section",
@@ -4790,7 +4791,6 @@
4790
4791
  "devices[].disableLogInfo",
4791
4792
  "devices[].disableLogDeviceInfo",
4792
4793
  "devices[].disableLogConnectError",
4793
- "devices[].supportOldAvr",
4794
4794
  "devices[].masterPower",
4795
4795
  "devices[].masterVolume",
4796
4796
  "devices[].masterMute",
package/index.js CHANGED
@@ -262,8 +262,7 @@ class denonTvDevice {
262
262
  const inputsArr = [];
263
263
  const referencesArray = [];
264
264
 
265
- //old AVR
266
-
265
+ //support old AVR
267
266
  const inputsReferencesOldAvr = this.supportOldAvr ? devInfo.InputFuncList[0].value : [];
268
267
  const inputsNamesOldAvr = this.supportOldAvr ? devInfo.RenameSource[0].value : [];
269
268
  const inputsReferencesOldAvrCount = inputsReferencesOldAvr.length;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Denon TV",
3
3
  "name": "homebridge-denon-tv",
4
- "version": "4.0.2-beta.21",
4
+ "version": "4.0.2-beta.23",
5
5
  "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Denon/Marantz AV Receivers.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",