Set speed service fixed. (#12602)

pull/12605/merge
Sebastian Muszynski 2018-02-23 00:21:36 +01:00 committed by Paulus Schoutsen
parent 1af65f8f23
commit 87c69452f9
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ class XiaomiAirPurifier(FanEntity):
yield from self._try_command(
"Setting operation mode of the air purifier failed.",
self._air_purifier.set_mode, OperationMode[speed])
self._air_purifier.set_mode, OperationMode(speed))
@asyncio.coroutine
def async_set_buzzer_on(self):