Skip to content

fix: Cast led_override_color_brightness from API to int#954

Merged
Kane610 merged 3 commits into
Kane610:masterfrom
Sese-Schneider:Sese-Schneider-patch-1
Nov 17, 2025
Merged

fix: Cast led_override_color_brightness from API to int#954
Kane610 merged 3 commits into
Kane610:masterfrom
Sese-Schneider:Sese-Schneider-patch-1

Conversation

@Sese-Schneider
Copy link
Copy Markdown
Contributor

@Sese-Schneider Sese-Schneider commented Nov 17, 2025

The device API sometimes returns the led_override_color_brightness as str.
I've now managed to observe this behavior in the wild on my setup with the debugger attached!

image

Adds a cast to int to ensure consistent datatypes for downstream consumers.

As discussed here: home-assistant/core#155936 (comment)

I can open a PR to HA once the fixed version is available.

@Kane610
Copy link
Copy Markdown
Owner

Kane610 commented Nov 17, 2025

Nice! Please add a small test as well

@Sese-Schneider
Copy link
Copy Markdown
Contributor Author

@Kane610 done ✅

@Kane610 Kane610 merged commit 0beb6fa into Kane610:master Nov 17, 2025
1 check passed
@Kane610
Copy link
Copy Markdown
Owner

Kane610 commented Nov 17, 2025

Thanks! I'll try to do a release tomorrow

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.

2 participants