diff --git a/src/devices/AirConditioner.ts b/src/devices/AirConditioner.ts index c1b47f4..87d262a 100644 --- a/src/devices/AirConditioner.ts +++ b/src/devices/AirConditioner.ts @@ -679,7 +679,7 @@ export default class AirConditioner extends baseDevice { temperature = device.deviceModel.value('airState.tempState.limitMin') as RangeValue; } - if (!temperature || !temperature.min || !temperature.max || isFinite(temperature.min) || isFinite(temperature.max)) { + if (!temperature || !temperature.min || !temperature.max) { temperature = device.deviceModel.value('airState.tempState.target') as RangeValue; } diff --git a/src/devices/Styler.ts b/src/devices/Styler.ts index e1cceb1..c139afb 100644 --- a/src/devices/Styler.ts +++ b/src/devices/Styler.ts @@ -28,12 +28,6 @@ export default class Styler extends baseDevice { this.serviceStyter = accessory.getService(Valve) || accessory.addService(Valve, device.name); this.serviceStyter.getCharacteristic(Characteristic.Active) .onSet(this.setActive.bind(this)) - .setProps({ - perms: [ - Perms.PAIRED_READ, - Perms.NOTIFY, - ], - }) .updateValue(Characteristic.Active.INACTIVE); this.serviceStyter.setCharacteristic(Characteristic.Name, device.name); this.serviceStyter.setCharacteristic(Characteristic.ValveType, Characteristic.ValveType.GENERIC_VALVE);