diff --git a/custom_components/midea_ac_lan/fan.py b/custom_components/midea_ac_lan/fan.py index 32ef08e..be6166d 100644 --- a/custom_components/midea_ac_lan/fan.py +++ b/custom_components/midea_ac_lan/fan.py @@ -63,7 +63,7 @@ async def async_setup_entry( # HA version >= 2024,8 support TURN_ON | TURN_OFF,for future changes, ref PR #285 try: - FAN_FEATURE_TURN_ON_OFF = FanEntityFeature['TURN_ON'] | FanEntityFeature['TURN_OFF'] + FAN_FEATURE_TURN_ON_OFF = FanEntityFeature["TURN_ON"] | FanEntityFeature["TURN_OFF"] except KeyError: FAN_FEATURE_TURN_ON_OFF = FanEntityFeature(0)