From 9ac28d20760614e11b79dd42775022e9e6d3daa2 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 22 Jun 2022 21:40:22 +0200 Subject: [PATCH] Adjust vesync type hints (#73842) --- homeassistant/components/vesync/fan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/vesync/fan.py b/homeassistant/components/vesync/fan.py index 696a6a9ecf9..9932790fa96 100644 --- a/homeassistant/components/vesync/fan.py +++ b/homeassistant/components/vesync/fan.py @@ -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: