diff --git a/custom_components/vesync/common.py b/custom_components/vesync/common.py index 1623ba1..c770b39 100644 --- a/custom_components/vesync/common.py +++ b/custom_components/vesync/common.py @@ -59,8 +59,8 @@ async def async_process_devices(hass, manager): else: if hasattr(fan, "config_dict"): devices[VS_NUMBERS].append(fan) - if "air_quality" in fan.config_dict["features"]: - devices[VS_SENSORS].append(fan) + if "air_quality" in fan.config_dict["features"]: + devices[VS_SENSORS].append(fan) devices[VS_SWITCHES].append(fan) # for automatic stop and display devices[VS_FANS].append(fan) _LOGGER.info("%d VeSync fans found", len(manager.fans))