From 11bc3322db748985513388212e48ad85f87e4be0 Mon Sep 17 00:00:00 2001 From: Teemu Rytilahti Date: Fri, 3 Jan 2025 19:56:28 +0100 Subject: [PATCH] Don't lowercase fan speed preset names --- 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 17c864ca..89cef71f 100644 --- a/kasa/smart/modules/vacuum.py +++ b/kasa/smart/modules/vacuum.py @@ -215,7 +215,7 @@ class Vacuum(SmartModule): async def set_fan_speed_preset(self, speed: str) -> dict: """Set fan speed preset.""" - name_to_value = {x.name.lower(): x.value for x in FanSpeed} + name_to_value = {x.name: x.value for x in FanSpeed} if speed not in name_to_value: raise ValueError("Invalid fan speed %s, available %s", speed, name_to_value) return await self.call(