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
4 changes: 4 additions & 0 deletions custom_components/animated_scenes/animations.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ def build_light_attributes(self, light: str, initial: bool = False) -> dict[str,
attributes["brightness"] = self.get_static_or_random(color[CONF_BRIGHTNESS])
elif self._animate_brightness and self._global_brightness is not None:
attributes["brightness"] = self.get_static_or_random(self._global_brightness)
elif isinstance(self._global_brightness, int):
attributes["brightness"] = self._global_brightness
elif isinstance(self._global_brightness, list):
_LOGGER.warning("Global brightness is a list but animate_brightness is False, ignoring")

if CONF_BRIGHTNESS in color and color[CONF_COLOR_ONE_CHANGE_PER_TICK]:
self._light_status[light] = {
Expand Down
Loading