Skip to content

Commit 88674ef

Browse files
committed
Revert
1 parent 253973e commit 88674ef

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

custom_components/tuya_ble/climate.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,14 @@ def _handle_coordinator_update(self) -> None:
234234
break
235235
self._attr_preset_mode = current_preset_mode
236236

237-
try:
238-
if (
239-
self._attr_preset_mode == PRESET_AWAY
240-
or self._attr_hvac_mode == HVACMode.OFF
241-
or self._attr_target_temperature <= self._attr_current_temperature
242-
):
243-
self._attr_hvac_action = HVACAction.IDLE
244-
else:
245-
self._attr_hvac_action = HVACAction.HEATING
246-
except:
247-
pass
237+
if (
238+
self._attr_preset_mode == PRESET_AWAY
239+
or self._attr_hvac_mode == HVACMode.OFF
240+
or self._attr_target_temperature <= self._attr_current_temperature
241+
):
242+
self._attr_hvac_action = HVACAction.IDLE
243+
else:
244+
self._attr_hvac_action = HVACAction.HEATING
248245

249246
self.async_write_ha_state()
250247

0 commit comments

Comments
 (0)