mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-01-09 22:37:08 +00:00
Use fanspeed keys as choices
This commit is contained in:
parent
4872404842
commit
92a3082c91
@ -112,7 +112,7 @@ class Vacuum(SmartModule):
|
|||||||
attribute_getter="fan_speed_preset",
|
attribute_getter="fan_speed_preset",
|
||||||
attribute_setter="set_fan_speed_preset",
|
attribute_setter="set_fan_speed_preset",
|
||||||
icon="mdi:fan",
|
icon="mdi:fan",
|
||||||
choices_getter=lambda: list([str(speed) for speed in FanSpeed]),
|
choices_getter=lambda: list(FanSpeed.__members__),
|
||||||
category=Feature.Category.Primary,
|
category=Feature.Category.Primary,
|
||||||
type=Feature.Type.Choice,
|
type=Feature.Type.Choice,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user