Prevent disabled heating warning loop while HVACMode is OFF (#374)

This commit is contained in:
Paulo Ferreira de Castro
2024-02-04 19:58:22 +00:00
committed by GitHub
parent e52666b9d9
commit a440b35815
5 changed files with 40 additions and 18 deletions

View File

@@ -799,7 +799,7 @@ class BaseThermostat(ClimateEntity, RestoreEntity):
self._target_temp,
self._cur_temp,
self._cur_ext_temp,
self._hvac_mode == HVACMode.COOL,
self._hvac_mode or HVACMode.OFF,
)
self.hass.create_task(self._check_initial_state())