Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fan and reduce I/O calls in radiotherm #10437

Merged
merged 9 commits into from
Nov 22, 2017
Prev Previous commit
Next Next commit
removed unneeded if block
  • Loading branch information
TD22057 committed Nov 14, 2017
commit 33136e639be8365a2a8a84affbe7926c541d1a22
4 changes: 1 addition & 3 deletions homeassistant/components/climate/radiotherm.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,7 @@ def set_time(self):

def set_operation_mode(self, operation_mode):
"""Set operation mode (auto, cool, heat, off)."""
if operation_mode == STATE_OFF:
self.device.tmode = TEMP_MODE_TO_CODE[operation_mode]
elif operation_mode == STATE_AUTO:
if operation_mode == STATE_OFF or operation_mode == STATE_AUTO:
self.device.tmode = TEMP_MODE_TO_CODE[operation_mode]

# Setting t_cool or t_heat automatically changes tmode.
Expand Down