Fix typing of fan speed count and steps (#46790)

This commit is contained in:
J. Nick Koston 2021-02-19 19:57:21 -10:00 committed by GitHub
parent 0e9148e239
commit 3e334a4950
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 16 additions and 14 deletions

View file

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