diff --git a/custom_components/adaptive_lighting/switch.py b/custom_components/adaptive_lighting/switch.py index 29318b40..11d38434 100644 --- a/custom_components/adaptive_lighting/switch.py +++ b/custom_components/adaptive_lighting/switch.py @@ -326,7 +326,9 @@ def _get_switches_with_lights( all_check_lights = _expand_light_groups(hass, lights) switch._expand_light_groups() # pylint: disable=protected-access # Check if any of the lights are in the switch's lights - if set(switch._lights) & set(all_check_lights): # pylint: disable=protected-access + if set(switch._lights) & set( + all_check_lights + ): # pylint: disable=protected-access switches.append(switch) else: switches.append(switch)