diff --git a/custom_components/magic_areas/climate.py b/custom_components/magic_areas/climate.py index 7c7f1fae..1c68d4dc 100644 --- a/custom_components/magic_areas/climate.py +++ b/custom_components/magic_areas/climate.py @@ -109,6 +109,11 @@ async def async_setup_entry(hass, config_entry, async_add_entities): def setup_climate_group(area, async_add_entities): + + # Check feature availability + if not area.has_feature(CONF_FEATURE_CLIMATE_GROUPS): + return + # Check if there are any climate entities if not area.has_entities(CLIMATE_DOMAIN): _LOGGER.debug(f"No {CLIMATE_DOMAIN} entities for area {area.name} ")