The name of the enum must be used here because of the speed_list. (#12625)

The fan.set_speed example value is lower-case and led to confusion. Both spellings are possible now: Idle & idle
pull/11454/merge
Sebastian Muszynski 2018-02-23 19:11:54 +01:00 committed by Paulus Schoutsen
parent 230b73d14a
commit c3d322f26c
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.title()])
@asyncio.coroutine
def async_set_buzzer_on(self):