Tweak Tasmota fan typing (#47175)

pull/47184/head
Erik Montnemery 2021-02-28 17:48:23 +01:00 committed by GitHub
parent 4853a81366
commit da5902e4f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,5 @@
"""Support for Tasmota fans."""
from typing import Optional
from hatasmota import const as tasmota_const
from homeassistant.components import fan
@ -59,7 +57,7 @@ class TasmotaFan(
)
@property
def speed_count(self) -> Optional[int]:
def speed_count(self) -> int:
"""Return the number of speeds the fan supports."""
return len(ORDERED_NAMED_FAN_SPEEDS)