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

Detected blocking call to import_module with args #246

Open
mistermax80 opened this issue Sep 20, 2024 · 0 comments
Open

Detected blocking call to import_module with args #246

mistermax80 opened this issue Sep 20, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mistermax80
Copy link

Describe the bug
I see this in log this error

set 20 23:48:25 hpmini hass[21329]: 2024-09-20 23:48:25.403 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module with args ('pyhon.appliances.wm',) inside the event loop by custom integration 'hon' at custom_components/hon/__init__.py, line 34: hon = await Hon( (offender: /srv/homeassistant/lib/python3.12/site-packages/pyhon/appliance.py, line 52: self._extra: Optional[ApplianceBase] = importlib.import_module(), please create a bug report at https://github.com/Andre0512/hon/issues set 20 23:48:25 hpmini hass[21329]: For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#import_module set 20 23:48:25 hpmini hass[21329]: Traceback (most recent call last): set 20 23:48:25 hpmini hass[21329]: File "/srv/homeassistant/bin/hass", line 8, in <module> set 20 23:48:25 hpmini hass[21329]: sys.exit(main()) set 20 23:48:25 hpmini hass[21329]: File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/__main__.py", line 209, in main set 20 23:48:25 hpmini hass[21329]: exit_code = runner.run(runtime_conf) set 20 23:48:25 hpmini hass[21329]: File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/runner.py", line 189, in run set 20 23:48:25 hpmini hass[21329]: return loop.run_until_complete(setup_and_run_hass(runtime_config)) set 20 23:48:25 hpmini hass[21329]: File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete set 20 23:48:25 hpmini hass[21329]: self.run_forever() set 20 23:48:25 hpmini hass[21329]: File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever set 20 23:48:25 hpmini hass[21329]: self._run_once() set 20 23:48:25 hpmini hass[21329]: File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1985, in _run_once set 20 23:48:25 hpmini hass[21329]: handle._run() set 20 23:48:25 hpmini hass[21329]: File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run set 20 23:48:25 hpmini hass[21329]: self._context.run(self._callback, *self._args) set 20 23:48:25 hpmini hass[21329]: File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/config_entries.py", line 752, in async_setup_locked set 20 23:48:25 hpmini hass[21329]: await self.async_setup(hass, integration=integration) set 20 23:48:25 hpmini hass[21329]: File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/config_entries.py", line 604, in async_setup set 20 23:48:25 hpmini hass[21329]: result = await component.async_setup_entry(hass, self) set 20 23:48:25 hpmini hass[21329]: File "/home/homeassistant/.homeassistant/custom_components/hon/__init__.py", line 34, in async_setup_entry set 20 23:48:25 hpmini hass[21329]: hon = await Hon(

@mistermax80 mistermax80 added the bug Something isn't working label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants