Skip to content

Commit

Permalink
Revert "Add support for STATE_AUTO of generic_thermostat (#15678)" (#…
Browse files Browse the repository at this point in the history
…15783)

This reverts commit 2e5131b.
  • Loading branch information
awarecan authored Aug 1, 2018
1 parent 2e5131b commit 589b23b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions homeassistant/components/climate/generic_thermostat.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,7 @@ def operation_list(self):

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()
Expand Down

0 comments on commit 589b23b

Please sign in to comment.