Revert "Add support for STATE_AUTO of generic_thermostat (#15678)" (#15783)

This reverts commit 2e5131bb21.
pull/15782/merge
Jason Hu 2018-08-01 10:04:41 -07:00 committed by GitHub
parent 2e5131bb21
commit 589b23b7e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

View File

@ -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()