mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-01-09 14:27:10 +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_setter="set_fan_speed_preset",
|
||||
icon="mdi:fan",
|
||||
choices_getter=lambda: list([str(speed) for speed in FanSpeed]),
|
||||
choices_getter=lambda: list(FanSpeed.__members__),
|
||||
category=Feature.Category.Primary,
|
||||
type=Feature.Type.Choice,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user