diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index 1fcf801d..15e1e288 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -2040,7 +2040,8 @@ class AdaptiveLightingManager: skipped.append(entity_id) else: filtered_entity_ids.append(entity_id) - + if not filtered_entity_ids: + continue if not has_intercepted: await self._service_interceptor_turn_on_single_light_handler( filtered_entity_ids,