Skip to content

Commit

Permalink
fix: AWHP warning message #213
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin committed Feb 13, 2024
1 parent bfdcf70 commit 6eb441a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/AirConditioner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ export default class AirConditioner extends baseDevice {
}

let targetTemperatureValue = device.deviceModel.value('airState.tempState.limitMin') as RangeValue;
if (!targetTemperatureValue) {
if (!targetTemperatureValue || !targetTemperatureValue.min || !targetTemperatureValue.max) {
targetTemperatureValue = device.deviceModel.value('airState.tempState.target') as RangeValue;
}

Expand Down

0 comments on commit 6eb441a

Please sign in to comment.