Fix typing of fan speed count and steps (#46790)
This commit is contained in:
parent
0e9148e239
commit
3e334a4950
9 changed files with 16 additions and 14 deletions
|
@ -70,7 +70,7 @@ class KNXFan(KnxEntity, FanEntity):
|
|||
return self._device.current_speed
|
||||
|
||||
@property
|
||||
def speed_count(self) -> Optional[int]:
|
||||
def speed_count(self) -> int:
|
||||
"""Return the number of speeds the fan supports."""
|
||||
if self._step_range is None:
|
||||
return super().speed_count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue