diff --git a/custom_components/animated_scenes/animations.py b/custom_components/animated_scenes/animations.py index 41478e8..3c88d6b 100644 --- a/custom_components/animated_scenes/animations.py +++ b/custom_components/animated_scenes/animations.py @@ -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: