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 a race condition in bulb.py when closing while a bulb is offline #168

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

tjmv
Copy link
Contributor

@tjmv tjmv commented Nov 8, 2023

When restarting Home Assistant, an error is thrown when bulbs are offline.

Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/pywizlight/bulb.py", line 379, in _send_udp_message_with_retry
if transport.is_closing() or response_future.done():
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'is_closing'

@sbidy sbidy merged commit 6c6e4a2 into sbidy:master Jun 5, 2024
2 of 4 checks passed
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