mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Fix late comment to PR adding percentage support to deCONZ fan platform (#48333)
This commit is contained in:
parent
056f7d493c
commit
88b5eff726
@ -81,7 +81,7 @@ class DeconzFan(DeconzDevice, FanEntity):
|
|||||||
if self._device.speed == 0:
|
if self._device.speed == 0:
|
||||||
return 0
|
return 0
|
||||||
if self._device.speed not in ORDERED_NAMED_FAN_SPEEDS:
|
if self._device.speed not in ORDERED_NAMED_FAN_SPEEDS:
|
||||||
return
|
return None
|
||||||
return ordered_list_item_to_percentage(
|
return ordered_list_item_to_percentage(
|
||||||
ORDERED_NAMED_FAN_SPEEDS, self._device.speed
|
ORDERED_NAMED_FAN_SPEEDS, self._device.speed
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user