Skip to content

Commit

Permalink
fix: AC temperature range
Browse files Browse the repository at this point in the history
  • Loading branch information
nVuln committed Apr 6, 2024
1 parent 302587c commit 0ed3201
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/devices/AirConditioner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
6 changes: 0 additions & 6 deletions src/devices/Styler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0ed3201

Please sign in to comment.