mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Improve knx fan implementation (#46404)
This commit is contained in:
@@ -35,6 +35,8 @@ class KNXFan(KnxEntity, FanEntity):
|
|||||||
|
|
||||||
if self._device.mode == FanSpeedMode.Step:
|
if self._device.mode == FanSpeedMode.Step:
|
||||||
self._step_range = (1, device.max_step)
|
self._step_range = (1, device.max_step)
|
||||||
|
else:
|
||||||
|
self._step_range = None
|
||||||
|
|
||||||
async def async_set_percentage(self, percentage: int) -> None:
|
async def async_set_percentage(self, percentage: int) -> None:
|
||||||
"""Set the speed of the fan, as a percentage."""
|
"""Set the speed of the fan, as a percentage."""
|
||||||
|
Reference in New Issue
Block a user