From 5c15cd671d2937b8482ddaad5227720fa46c8b5a Mon Sep 17 00:00:00 2001 From: Vincent Le Bourlot Date: Tue, 12 Jul 2022 09:01:59 +0200 Subject: [PATCH] fix regression from 0.1.10 --- custom_components/vesync/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))