switch from HEAT to COOL mode (#144)

* support both HEAT and COOL mode

* update unit test to support both HEAT and COOL mode
This commit is contained in:
Andrea Nicotra
2023-11-02 00:40:48 +01:00
committed by GitHub
parent 89b6f0523b
commit 5e6b477174
2 changed files with 14 additions and 2 deletions

View File

@@ -338,7 +338,7 @@ class BaseThermostat(ClimateEntity, RestoreEntity):
self._presence_on = self._presence_sensor_entity_id is not None
if self._ac_mode:
self._hvac_list = [HVACMode.COOL, HVACMode.OFF]
self._hvac_list = [HVACMode.HEAT, HVACMode.COOL, HVACMode.OFF]
else:
self._hvac_list = [HVACMode.HEAT, HVACMode.OFF]