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

Blocking call warning #21

Open
idogrf opened this issue Jan 16, 2025 · 1 comment
Open

Blocking call warning #21

idogrf opened this issue Jan 16, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@idogrf
Copy link

idogrf commented Jan 16, 2025

Hi,

There's a warning when starting the component.

2025-01-16 10:36:14.092 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_default_certs with args (<ssl.SSLContext object at 0x7f6251f410>, <Purpose.SERVER_AUTH: _ASN1Object(nid=129, shortname='serverAuth', longname='TLS Web Server Authentication', oid='1.3.6.1.5.5.7.3.1')>) inside the event loop by custom integration 'yamaha_soundbar' at custom_components/yamaha_soundbar/media_player.py, line 233: ssl_ctx = ssl.create_default_context(purpose=ssl.Purpose.SERVER_AUTH) (offender: /usr/local/lib/python3.13/ssl.py, line 722: context.load_default_certs(purpose)), please create a bug report at [https://github.com/osk2/yamaha-soundbar](https://github.com/osk2/yamaha-soundbar%3C/span%3E)
2025-01-16 10:36:14.207 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_cert_chain with args (<ssl.SSLContext object at 0x7f6251f410>,) inside the event loop by custom integration 'yamaha_soundbar' at custom_components/yamaha_soundbar/media_player.py, line 234: ssl_ctx.load_cert_chain(certfile=certpath) (offender: /config/custom_components/yamaha_soundbar/media_player.py, line 234: ssl_ctx.load_cert_chain(certfile=certpath)), please create a bug report at [https://github.com/osk2/yamaha-soundbar](https://github.com/osk2/yamaha-soundbar%3C/span%3E)

Thanks for the great integration :)

@osk2
Copy link
Owner

osk2 commented Jan 19, 2025

It shouldn’t be a big deal. I’ll work on a fix whenever I get a chance.

@osk2 osk2 self-assigned this Jan 19, 2025
@osk2 osk2 added the enhancement New feature or request label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants