mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
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
This commit is contained in:
parent
286baed9ad
commit
781b7687a4
@ -302,7 +302,7 @@ class XiaomiAirPurifier(FanEntity):
|
|||||||
|
|
||||||
yield from self._try_command(
|
yield from self._try_command(
|
||||||
"Setting operation mode of the air purifier failed.",
|
"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
|
@asyncio.coroutine
|
||||||
def async_set_buzzer_on(self):
|
def async_set_buzzer_on(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user