Fix lutron caseta fan handling of speed off (#47244)
This commit is contained in:
parent
96cc17b462
commit
2e65a60624
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,8 @@ class LutronCasetaFan(LutronCasetaDevice, FanEntity):
|
|||
"""Return the current speed percentage."""
|
||||
if self._device["fan_speed"] is None:
|
||||
return None
|
||||
if self._device["fan_speed"] == FAN_OFF:
|
||||
return 0
|
||||
return ordered_list_item_to_percentage(
|
||||
ORDERED_NAMED_FAN_SPEEDS, self._device["fan_speed"]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue