Fixed issue with Tv's turning on while using remote

This commit is contained in:
watsonb8
2019-07-26 15:44:26 -04:00
parent 7638644935
commit 04024d565d
3 changed files with 16 additions and 10 deletions

View File

@ -222,11 +222,6 @@ class HarmonyDataProvider {
if (this.states[controlUnitName]) {
let commandName: string = "";
//Ignore commands unless the tv is already on
if (!this.states[controlUnitName]!.currentActivity) {
return;
}
let device: IDevice = this.getDeviceFromName(this.states[controlUnitName]!.currentActivity.controlDeviceId);
switch (key) {
case RemoteKey.ARROW_UP: {