Fixed issue where inputs weren't getting set. Possibly fixed incorrect tv issue.

This commit is contained in:
watsonb8
2019-07-31 17:14:02 -04:00
parent 39f4a7c1bc
commit 727c8ceba7
2 changed files with 21 additions and 21 deletions

View File

@ -123,8 +123,8 @@ class HarmonyDataProvider {
activity.deviceSetupItems.map(async (value: DeviceSetupItem) => {
let device: IDevice = this.getDeviceFromName(value.deviceName);
if (device && device.supportsCommand(`Input ${value.input}`)) {
let command: string = device.getCommand(`Input ${value.input}`);
if (device && device.supportsCommand(`Input${value.input}`)) {
let command: string = device.getCommand(`Input${value.input}`);
await this.sendCommand(command);
}
})
@ -142,8 +142,8 @@ class HarmonyDataProvider {
//Route hdmi
if (matrixDevice.supportsCommand(inputCommandName) && matrixDevice.supportsCommand(outputCommandName)) {
await this.sendCommand(matrixDevice.getCommand(inputCommandName));
await this.sendCommand(matrixDevice.getCommand(outputCommandName));
await this.sendCommand(matrixDevice.getCommand(inputCommandName));
}
}