Skip to content

Commit

Permalink
Merge branch 'adaptive-lighting-edge' of https://github.com/basnijhol…
Browse files Browse the repository at this point in the history
…t/adaptive-lighting into adaptive-lighting-edge
  • Loading branch information
th3w1zard1 committed Apr 10, 2023
2 parents b206258 + 0b21685 commit c8a3fb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/adaptive_lighting/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c8a3fb4

Please sign in to comment.