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

Light: Add hs null check to avoid crash #748

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cbrand
Copy link

@cbrand cbrand commented Apr 16, 2024

Avoid a crash on the hs light check if none is set.

Fixes #746

Avoid a crash on the hs light check if none is set.

Fixes petretiandrea#746
@cbrand
Copy link
Author

cbrand commented Apr 16, 2024

Checked in my home assistant installation with the L530 light bulbs and this null checks results that the lights are controllable again and do not show as unavailable.

@cbrand cbrand changed the title Ligh: Add hs null check to avoid crash Light: Add hs null check to avoid crash Apr 17, 2024
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.

3.1.1 AttributeError: 'NoneType' object has no attribute 'hue' Tapo L530 Series bulbs
1 participant