Use fanspeed keys as choices

This commit is contained in:
Teemu Rytilahti 2025-01-03 19:28:35 +01:00
parent 4872404842
commit 92a3082c91

View File

@ -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,
)