Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
forabi committed Jun 10, 2023
1 parent 253973e commit 88674ef
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions custom_components/tuya_ble/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,17 +234,14 @@ def _handle_coordinator_update(self) -> None:
break
self._attr_preset_mode = current_preset_mode

try:
if (
self._attr_preset_mode == PRESET_AWAY
or self._attr_hvac_mode == HVACMode.OFF
or self._attr_target_temperature <= self._attr_current_temperature
):
self._attr_hvac_action = HVACAction.IDLE
else:
self._attr_hvac_action = HVACAction.HEATING
except:
pass
if (
self._attr_preset_mode == PRESET_AWAY
or self._attr_hvac_mode == HVACMode.OFF
or self._attr_target_temperature <= self._attr_current_temperature
):
self._attr_hvac_action = HVACAction.IDLE
else:
self._attr_hvac_action = HVACAction.HEATING

self.async_write_ha_state()

Expand Down

0 comments on commit 88674ef

Please sign in to comment.