mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix lutron caseta fan handling of speed off (#47244)
This commit is contained in:
parent
96cc17b462
commit
2e65a60624
@ -46,6 +46,8 @@ class LutronCasetaFan(LutronCasetaDevice, FanEntity):
|
|||||||
"""Return the current speed percentage."""
|
"""Return the current speed percentage."""
|
||||||
if self._device["fan_speed"] is None:
|
if self._device["fan_speed"] is None:
|
||||||
return None
|
return None
|
||||||
|
if self._device["fan_speed"] == FAN_OFF:
|
||||||
|
return 0
|
||||||
return ordered_list_item_to_percentage(
|
return ordered_list_item_to_percentage(
|
||||||
ORDERED_NAMED_FAN_SPEEDS, self._device["fan_speed"]
|
ORDERED_NAMED_FAN_SPEEDS, self._device["fan_speed"]
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user