mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add support for STATE_AUTO of generic_thermostat (#15678)
Add support for STATE_AUTO of generic_thermostat
This commit is contained in:
parent
2ff5b4ce95
commit
2e5131bb21
@ -231,7 +231,14 @@ class GenericThermostat(ClimateDevice):
|
|||||||
|
|
||||||
async def async_set_operation_mode(self, operation_mode):
|
async def async_set_operation_mode(self, operation_mode):
|
||||||
"""Set operation mode."""
|
"""Set operation mode."""
|
||||||
if operation_mode == STATE_HEAT:
|
if operation_mode == STATE_AUTO:
|
||||||
|
if not self.ac_mode:
|
||||||
|
self._current_operation = STATE_HEAT
|
||||||
|
else:
|
||||||
|
self._current_operation = STATE_COOL
|
||||||
|
self._enabled = True
|
||||||
|
self._async_control_heating()
|
||||||
|
elif operation_mode == STATE_HEAT:
|
||||||
self._current_operation = STATE_HEAT
|
self._current_operation = STATE_HEAT
|
||||||
self._enabled = True
|
self._enabled = True
|
||||||
self._async_control_heating()
|
self._async_control_heating()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user