From 7de1d4b563d4ab27711e80605f6fb3c1c96ae518 Mon Sep 17 00:00:00 2001 From: krahabb <13969600+krahabb@users.noreply.github.com> Date: Mon, 5 Aug 2024 11:38:42 +0000 Subject: [PATCH] ignore type-checking complaint (HA core 2024.8 new symbols) --- custom_components/meross_lan/fan.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/meross_lan/fan.py b/custom_components/meross_lan/fan.py index fb0e8d6..be3c8ea 100644 --- a/custom_components/meross_lan/fan.py +++ b/custom_components/meross_lan/fan.py @@ -13,12 +13,14 @@ async def async_setup_entry(hass, config_entry, async_add_devices): me.platform_setup_entry(hass, config_entry, async_add_devices, fan.DOMAIN) + try: # HA core 2024.8.0 new flags - _supported_features = fan.FanEntityFeature.SET_SPEED | fan.FanEntityFeature.TURN_OFF | fan.FanEntityFeature.TURN_ON + _supported_features = fan.FanEntityFeature.SET_SPEED | fan.FanEntityFeature.TURN_OFF | fan.FanEntityFeature.TURN_ON # type: ignore except: _supported_features = fan.FanEntityFeature.SET_SPEED + class MLFan(me.MerossBinaryEntity, fan.FanEntity): """ Fan entity for map100 Air Purifier (or any device implementing Appliance.Control.Fan)