From 92a3082c9185dd10da905cd115dd0a3796368012 Mon Sep 17 00:00:00 2001 From: Teemu Rytilahti Date: Fri, 3 Jan 2025 19:28:35 +0100 Subject: [PATCH] Use fanspeed keys as choices --- kasa/smart/modules/vacuum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kasa/smart/modules/vacuum.py b/kasa/smart/modules/vacuum.py index 61f3b5ec..6f92ba07 100644 --- a/kasa/smart/modules/vacuum.py +++ b/kasa/smart/modules/vacuum.py @@ -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, )