From 3071a4033fcc3f03d6aaa36d8f88b42c00ef3ef9 Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Fri, 30 Aug 2024 11:20:53 +0000 Subject: [PATCH] chore: add missing typing --- custom_components/midea_ac_lan/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/midea_ac_lan/__init__.py b/custom_components/midea_ac_lan/__init__.py index 4bf5c35..669371f 100644 --- a/custom_components/midea_ac_lan/__init__.py +++ b/custom_components/midea_ac_lan/__init__.py @@ -30,7 +30,7 @@ ) from homeassistant.core import HomeAssistant from homeassistant.helpers.typing import ConfigType -from midealocal.device import DeviceType, ProtocolVersion +from midealocal.device import DeviceType, MideaDevice, ProtocolVersion from midealocal.devices import device_selector from .const import ( @@ -67,7 +67,7 @@ async def update_listener(hass: HomeAssistant, config_entry: ConfigEntry) -> Non customize = config_entry.options.get(CONF_CUSTOMIZE, "") ip_address = config_entry.options.get(CONF_IP_ADDRESS, None) refresh_interval = config_entry.options.get(CONF_REFRESH_INTERVAL, None) - dev = hass.data[DOMAIN][DEVICES].get(device_id) + dev: MideaDevice = hass.data[DOMAIN][DEVICES].get(device_id) if dev: dev.set_customize(customize) if ip_address is not None: