Skip to content

Commit

Permalink
Fix Medium Fan Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wood authored and Michael Wood committed Mar 17, 2020
1 parent 4f0cedd commit 9244a99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/infinitive/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,10 @@ def set_fan_mode(self, fan_mode):
_LOGGER.debug("Setting fan mode: " + str(fan_mode))
if fan_mode is None:
return
self._inf_device.set_fanmode(fan_mode)
if fan_mode == FAN_MEDIUM:
self._inf_device.set_fanmode('med')
else:
self._inf_device.set_fanmode(fan_mode)

def set_hvac_mode(self, hvac_mode):
"""Set new operation mode."""
Expand Down

0 comments on commit 9244a99

Please sign in to comment.