Improve knx fan implementation (#46404)

This commit is contained in:
Martin 2021-02-11 18:55:17 +01:00 committed by GitHub
parent fd177441b3
commit eb0d1bb673
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,8 @@ class KNXFan(KnxEntity, FanEntity):
if self._device.mode == FanSpeedMode.Step:
self._step_range = (1, device.max_step)
else:
self._step_range = None
async def async_set_percentage(self, percentage: int) -> None:
"""Set the speed of the fan, as a percentage."""