Worked around bug where receiver was not turning off

This commit is contained in:
watsonb8
2020-01-24 23:17:33 -05:00
parent 6f7fc4c2af
commit 3ac6ffb8a3
4 changed files with 22 additions and 12 deletions

View File

@ -76,6 +76,13 @@ export class HarmonyDevice {
try {
//Execute command
//HACK to fix Harmon Kardon receiver not turning off
if (command.command === "PowerOff") {
for (let i = 0; i < 2; i++) {
await this._harmony.sendCommand(JSON.stringify(command));
}
}
await this._harmony.sendCommand(JSON.stringify(command));
//Sleep

View File

@ -55,7 +55,6 @@ export class HarmonyHub extends EventEmitter {
harmony: this._harmony
});
}));
this._log(`Harmony data provider ready`);
this.emit("Ready");
} catch (err) {