From 589b23b7e2a4467823a6d590e3c18b31677c42fe Mon Sep 17 00:00:00 2001 From: Jason Hu Date: Wed, 1 Aug 2018 10:04:41 -0700 Subject: [PATCH] Revert "Add support for STATE_AUTO of generic_thermostat (#15678)" (#15783) This reverts commit 2e5131bb2161b43461231a683e45d2c843d727f0. --- homeassistant/components/climate/generic_thermostat.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/homeassistant/components/climate/generic_thermostat.py b/homeassistant/components/climate/generic_thermostat.py index 5e535bf6def..3f1d9a208ac 100644 --- a/homeassistant/components/climate/generic_thermostat.py +++ b/homeassistant/components/climate/generic_thermostat.py @@ -231,14 +231,7 @@ class GenericThermostat(ClimateDevice): async def async_set_operation_mode(self, operation_mode): """Set operation mode.""" - 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: + if operation_mode == STATE_HEAT: self._current_operation = STATE_HEAT self._enabled = True self._async_control_heating()