mirror of
https://github.com/home-assistant/core
synced 2024-08-06 09:34:49 +02:00
Adjust vesync type hints (#73842)
This commit is contained in:
parent
0e674fc597
commit
9ac28d2076
@ -113,9 +113,9 @@ class VeSyncFanHA(VeSyncDevice, FanEntity):
|
||||
)
|
||||
|
||||
@property
|
||||
def preset_modes(self):
|
||||
def preset_modes(self) -> list[str]:
|
||||
"""Get the list of available preset modes."""
|
||||
return PRESET_MODES[SKU_TO_BASE_DEVICE.get(self.device.device_type)]
|
||||
return PRESET_MODES[SKU_TO_BASE_DEVICE[self.device.device_type]]
|
||||
|
||||
@property
|
||||
def preset_mode(self) -> str | None:
|
||||
|
Loading…
Reference in New Issue
Block a user