Skip to content

Commit

Permalink
ignore type-checking complaint (HA core 2024.8 new symbols)
Browse files Browse the repository at this point in the history
  • Loading branch information
krahabb committed Aug 5, 2024
1 parent 849c6ed commit 7de1d4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/meross_lan/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7de1d4b

Please sign in to comment.