Fix late comment to PR adding percentage support to deCONZ fan platform (#48333)

This commit is contained in:
Robert Svensson 2021-03-25 20:02:17 +01:00 committed by GitHub
parent 056f7d493c
commit 88b5eff726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
)