Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash with no custom color temperature lightbulbs #11

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

Gaubiche
Copy link
Contributor

@Gaubiche Gaubiche commented Jan 16, 2025

Fix crash with no custom color temperature lightbulbs

Hello, thanks for your work ! 👍

I found a small bug when using my lightbulbs when using the device_light status command.

Some lightbulbs do not have color temperature settings, it makes the command fail with:
'NoneType' object has no attribute 'get'

I just made a quick fix for my case, if you have any other idea, please share it 😃

fix crash with no custom color temperature lightbulbs
@RenierM26
Copy link
Owner

Thanks!

@RenierM26 RenierM26 merged commit b5f1d93 into RenierM26:main Jan 17, 2025
@Gaubiche Gaubiche deleted the fix/crash-no-color-lightbulb branch March 24, 2025 08:29
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