Skip to content

Commit

Permalink
Supports indeterminate set temperature values that may be returned du…
Browse files Browse the repository at this point in the history
…ring auto mode
  • Loading branch information
nao-pon committed Feb 13, 2024
1 parent 3181764 commit 1d23eec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/echonetlite/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def _set_attrs(self):

"""temperature we try to reach."""
_val = self._connector._update_data.get(ENL_HVAC_SET_TEMP)
if _val == -3:
# -3: Rule of thumb, 0xFD: Temperature indeterminable
if _val in {-3, 0xFD}:
_val = None
self._attr_target_temperature = _val

Expand Down

0 comments on commit 1d23eec

Please sign in to comment.