-
Notifications
You must be signed in to change notification settings - Fork 131
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 to open inside event loop warnings on 2024.6 dev #217
Comments
This diff for the helpers.py file seems to solve the problem. I'm not a python programmer. So please check it.
As an alternative, search for the function with this name and replace it with:
|
I can still see a warning with a huge list of integrations, including extended_openai_conversation that begins with:
|
Patch for jekalmin#217
I am still having similar issue, running on HaOS, HA core 2024.6.2 2024-06-16 10:12:33.973 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'extended_openai_conversation' at custom_components/extended_openai_conversation/helpers.py, line 150: await client.models.list(timeout=10) (offender: /usr/local/lib/python3.12/site-packages/distro/distro.py, line 1099: with open(self.os_release_file, encoding="utf-8") as release_file:), please create a bug report at https://github.com/jekalmin/extended_openai_conversation/issues |
This error is still present as of 6/30/24 |
Description:
Just a heads up, Home Assistant has been trying to highlight event loop blocking issues across the board in order to improve performance and responsiveness. These warnings were not appearing in 2024.5.3 but are showing up in the current dev build for a couple core integrations and extended_openai on my installation.
Environment:
• Core Version: core-2024.6.0.dev202405170216
• System: HAOS
Issue Details:
I see the following blocking calls inside the event loop related to the extended_openai_conversation custom integration:
Blocking Call to platform.py:
Blocking Call to distro.py:
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: