mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Adjust vesync type hints (#73842)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user