Skip to content

Set global brightness even if animate brightness is false#60

Merged
chazzu merged 1 commit intochazzu:masterfrom
Snuffy2:Set-global-brightness-even-if-animate-brightness-is-false
Oct 6, 2025
Merged

Set global brightness even if animate brightness is false#60
chazzu merged 1 commit intochazzu:masterfrom
Snuffy2:Set-global-brightness-even-if-animate-brightness-is-false

Conversation

@Snuffy2
Copy link
Contributor

@Snuffy2 Snuffy2 commented Oct 5, 2025

This pull request introduces a small change to the brightness handling logic in the build_light_attributes method of animations.py. The update adds more robust handling for cases where animate brightness is False. If global_brightness is an integer use it. If it is a list, show a warning.

Brightness handling improvements:

  • Added logic to set attributes["brightness"] directly if self._global_brightness is an integer, and log a warning if it is a list and brightness animation is disabled.

Fixes #48

@chazzu chazzu merged commit 8583ff2 into chazzu:master Oct 6, 2025
3 checks passed
@Snuffy2 Snuffy2 deleted the Set-global-brightness-even-if-animate-brightness-is-false branch October 6, 2025 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

animate_brightness: false not working as expected

2 participants