extended_openai_conversation
extended_openai_conversation copied to clipboard
Blocking call to open inside event loop warnings on 2024.6 dev
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:
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/platform.py, line 199: with open(executable, 'rb') as f:), please create a bug report at https://github.com/jekalmin/extended_openai_conversation/issues
Blocking Call to distro.py:
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
Steps to Reproduce:
- Update to the latest dev build of Home Assistant (core-2024.6.0.dev202405170216).