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

Investigate and potentially fix "blocking call to import_module" #50

Closed
snicker opened this issue Aug 13, 2024 · 1 comment
Closed

Investigate and potentially fix "blocking call to import_module" #50

snicker opened this issue Aug 13, 2024 · 1 comment
Assignees

Comments

@snicker
Copy link
Owner

snicker commented Aug 13, 2024

from https://community.home-assistant.io/t/zwift-sensor-component-feedback-and-testers-needed/87512/325

Found this in my log today:
2024-07-25 17:39:47.451 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module with args (‘google._upb._message’,) inside the event loop by custom integration ‘zwift’ at custom_components/zwift/zwift_patch/zwift_messages_pb2.py, line 5: from google.protobuf import descriptor as _descriptor (offender: /usr/local/lib/python3.12/site-packages/google/protobuf/internal/api_implementation.py, line 41: mod = importlib.import_module(mod_name)), please report it to the author of the ‘zwift’ custom integration
For developers, please see Blocking operations with asyncio | Home Assistant Developer Docs 2

OS Version: Home Assistant OS 12.4
Home Assistant Core: 2024.7.4

@snicker snicker self-assigned this Aug 13, 2024
@snicker
Copy link
Owner Author

snicker commented Aug 14, 2024

it appears that this is a side effect of the hack implemented to fix #37, but will probably have to deal with this later as it shouldn't be majorly impactful.

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

No branches or pull requests

1 participant