Worked around bug where receiver was not turning off
This commit is contained in:
@ -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
|
||||
|
@ -55,7 +55,6 @@ export class HarmonyHub extends EventEmitter {
|
||||
harmony: this._harmony
|
||||
});
|
||||
}));
|
||||
this._log(`Harmony data provider ready`);
|
||||
this.emit("Ready");
|
||||
|
||||
} catch (err) {
|
||||
|
Reference in New Issue
Block a user