1
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:
epenet 2022-06-22 21:40:22 +02:00 committed by GitHub
parent 0e674fc597
commit 9ac28d2076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: