homebridge-denon-tv 4.3.7 → 4.3.8
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/package.json +1 -1
- package/src/denondevice.js +4 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Denon TV",
|
|
3
3
|
"name": "homebridge-denon-tv",
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.8",
|
|
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/denondevice.js
CHANGED
|
@@ -503,6 +503,10 @@ class DenonDevice extends EventEmitter {
|
|
|
503
503
|
const zone = [inputMode, 'Z2', 'Z3', inputMode][zoneControl];
|
|
504
504
|
const reference = zone + inputReference;
|
|
505
505
|
|
|
506
|
+
if (!this.power) {
|
|
507
|
+
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
508
|
+
}
|
|
509
|
+
|
|
506
510
|
await this.denon.send(reference);
|
|
507
511
|
const info = this.disableLogInfo ? false : this.emit('message', `set ${this.inputSurround} Name: ${inputName}, Reference: ${inputReference}`);
|
|
508
512
|
} catch (error) {
|