mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Tweak Tasmota fan typing (#47175)
This commit is contained in:
parent
4853a81366
commit
da5902e4f8
@ -1,7 +1,5 @@
|
|||||||
"""Support for Tasmota fans."""
|
"""Support for Tasmota fans."""
|
||||||
|
|
||||||
from typing import Optional
|
|
||||||
|
|
||||||
from hatasmota import const as tasmota_const
|
from hatasmota import const as tasmota_const
|
||||||
|
|
||||||
from homeassistant.components import fan
|
from homeassistant.components import fan
|
||||||
@ -59,7 +57,7 @@ class TasmotaFan(
|
|||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def speed_count(self) -> Optional[int]:
|
def speed_count(self) -> int:
|
||||||
"""Return the number of speeds the fan supports."""
|
"""Return the number of speeds the fan supports."""
|
||||||
return len(ORDERED_NAMED_FAN_SPEEDS)
|
return len(ORDERED_NAMED_FAN_SPEEDS)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user