Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions custom_components/animated_scenes/animations.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,7 @@ def add_light(self, entity_id: str) -> None:
if state is None:
_LOGGER.warning("Entity %s not found, skipping", entity_id)
return
if (
state.state != "off"
and entity_id not in self._active_lights
or (state.state == "off" and self._ignore_off and entity_id not in self._active_lights)
):
if entity_id not in self._active_lights and (state.state != "off" or not self._ignore_off):
self._active_lights.append(entity_id)

def add_lights(self, ids: list) -> None:
Expand Down
Loading