Adjust type hints for FanEntityFeature (#82241)
* Adjust type hints for FanEntityFeature * Adjust template default
This commit is contained in:
parent
3d00923665
commit
1b80c66195
8 changed files with 18 additions and 20 deletions
|
@ -82,7 +82,7 @@ class BondFan(BondEntity, FanEntity):
|
|||
self._attr_preset_mode = PRESET_MODE_BREEZE if breeze[0] else None
|
||||
|
||||
@property
|
||||
def supported_features(self) -> int:
|
||||
def supported_features(self) -> FanEntityFeature | int:
|
||||
"""Flag supported features."""
|
||||
features = 0
|
||||
if self._device.supports_speed():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue