mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
Fix late comment to PR adding percentage support to deCONZ fan platform (#48333)
This commit is contained in:
@@ -81,7 +81,7 @@ class DeconzFan(DeconzDevice, FanEntity):
|
||||
if self._device.speed == 0:
|
||||
return 0
|
||||
if self._device.speed not in ORDERED_NAMED_FAN_SPEEDS:
|
||||
return
|
||||
return None
|
||||
return ordered_list_item_to_percentage(
|
||||
ORDERED_NAMED_FAN_SPEEDS, self._device.speed
|
||||
)
|
||||
|
Reference in New Issue
Block a user