mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-01-09 22:37:08 +00:00
Don't lowercase fan speed preset names
This commit is contained in:
parent
1bd8d54faf
commit
11bc3322db
@ -215,7 +215,7 @@ class Vacuum(SmartModule):
|
|||||||
|
|
||||||
async def set_fan_speed_preset(self, speed: str) -> dict:
|
async def set_fan_speed_preset(self, speed: str) -> dict:
|
||||||
"""Set fan speed preset."""
|
"""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:
|
if speed not in name_to_value:
|
||||||
raise ValueError("Invalid fan speed %s, available %s", speed, name_to_value)
|
raise ValueError("Invalid fan speed %s, available %s", speed, name_to_value)
|
||||||
return await self.call(
|
return await self.call(
|
||||||
|
Loading…
Reference in New Issue
Block a user