Skip to content

Commit

Permalink
Fix unexpected keyword argument 'fan_mode' (Closes: #41)
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Dec 2, 2018
1 parent 980882b commit 5d1e65d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/climate/xiaomi_miio.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,10 @@ def async_set_swing_mode(self, swing_mode):
yield from self._send_configuration()

@asyncio.coroutine
def async_set_fan_mode(self, fan):
def async_set_fan_mode(self, fan_mode):
"""Set the fan mode."""
from miio.airconditioningcompanion import FanSpeed
self._current_fan_mode = FanSpeed[fan.title()]
self._current_fan_mode = FanSpeed[fan_mode.title()]
yield from self._send_configuration()

@asyncio.coroutine
Expand Down

0 comments on commit 5d1e65d

Please sign in to comment.