Skip to content

Detected blocking call to import_module with args ('homeassistant.components.usb',) following upgrade to 2026.6.1 #173211

@pwhitea

Description

@pwhitea

The problem

I have just upgraded from 2026.3.4 to 2026.6 and get the following error in my logs, which impacts Bluetooth and then results in Shelly + ESPHome integrations failing. If have restored and tried an upgrade to 2026.5.1 and that fails with same issue therefore whatever is causing this was introduced post 2026.3.4.

2026-06-07 10:07:37.127 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module with args ('homeassistant.components.usb',) in /usr/local/lib/python3.14/site-packages/homeassistant/loader.py, line 1082: ComponentProtocol, importlib.import_module(self.pkg_path) inside the event loop; This is causing stability issues. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#import_module
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/local/lib/python3.14/site-packages/homeassistant/main.py", line 227, in
sys.exit(main())
File "/usr/local/lib/python3.14/site-packages/homeassistant/main.py", line 213, in main
exit_code = runner.run(runtime_conf)
File "/usr/local/lib/python3.14/site-packages/homeassistant/runner.py", line 289, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 706, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 677, in run_forever
self._run_once()
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 2046, in _run_once
handle._run()
File "/usr/local/lib/python3.14/asyncio/events.py", line 94, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.14/site-packages/homeassistant/setup.py", line 168, in async_setup_component
result = await _async_setup_component(hass, domain, config)
File "/usr/local/lib/python3.14/site-packages/homeassistant/setup.py", line 341, in _async_setup_component
component = await integration.async_get_component()
File "/usr/local/lib/python3.14/site-packages/homeassistant/loader.py", line 1034, in async_get_component
comp = self._get_component()
File "/usr/local/lib/python3.14/site-packages/homeassistant/loader.py", line 1082, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)

What version of Home Assistant Core has the issue?

2026.6

What was the last working version of Home Assistant Core?

2026.3.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

home-assistant_2026-06-07T10-16-06.464Z.log

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions