homebridge-denon-tv 4.4.2-beta.9 → 4.4.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/README.md +1 -1
- package/package.json +1 -1
- package/src/denondevice.js +3 -3
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ Tested with Denon AVR-X6300H, Denon AVR-X2700H, Denon AVR-3311CI, Marantz SR8012
|
|
|
72
72
|
| `getInputsFromDevice` | If enabled, source *Inputs* will be loaded direct from device. |
|
|
73
73
|
| `getFavoritesFromDevice` | If enabled, *Favorites* will be loaded to the inputs list if exist. |
|
|
74
74
|
| `getQuickSmartSelectFromDevice` | If enabled, *Quick/Smart Select* will be loaded to the inputs list if exist. |
|
|
75
|
-
| `inputsDisplayOrder` | Here select display order of the inputs list, `None`, `
|
|
75
|
+
| `inputsDisplayOrder` | Here select display order of the inputs list, `None`, `Ascending by Name`, `Descending by Name`, `Ascending by Reference`, `Ascending by Reference`. |
|
|
76
76
|
| `inputs.name` | Here set *Input Name* which You want expose to the *Homebridge/HomeKit*. |
|
|
77
77
|
| `inputs.reference` | Choose from available inputs, the inputs that should be published to and appear in HomeKit app in the device tile as inputs list |
|
|
78
78
|
| `inputs.mode` | Choose from available inputs mode. |
|
package/package.json
CHANGED
package/src/denondevice.js
CHANGED
|
@@ -785,13 +785,13 @@ class DenonDevice extends EventEmitter {
|
|
|
785
785
|
this.allServices.push(this.tvSpeakerService);
|
|
786
786
|
accessory.addService(this.tvSpeakerService);
|
|
787
787
|
|
|
788
|
-
//prepare
|
|
788
|
+
//prepare inputs service
|
|
789
789
|
const debug8 = !this.enableDebugMode ? false : this.emit('debug', `Prepare input services`);
|
|
790
790
|
|
|
791
|
-
//check possible inputs
|
|
791
|
+
//check possible inputs count (max 85)
|
|
792
792
|
const inputs = this.savedInputs;
|
|
793
793
|
const inputsCount = inputs.length;
|
|
794
|
-
const possibleInputsCount =
|
|
794
|
+
const possibleInputsCount = 85 - this.allServices.length;
|
|
795
795
|
const maxInputsCount = inputsCount >= possibleInputsCount ? possibleInputsCount : inputsCount;
|
|
796
796
|
let inputIdentifier = 0;
|
|
797
797
|
for (let i = 0; i < maxInputsCount; i++) {
|