Fix new line in asyncio_imports.md (#2725)

This commit is contained in:
Artur Pragacz 2025-07-16 12:21:56 +02:00 committed by GitHub
parent e09bd74614
commit 3c6810afaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,7 @@ If the module is only used conditionally, and will only ever be imported in a si
- For imports inside of Home Assistant `hass.async_add_executor_job(_function_that_does_late_import)`
- For imports outside of Home Assistant: [`loop.run_in_executor(None, _function_that_does_late_import)`](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.run_in_executor)
If the same module may be imported concurrently in different parts of the application, use the thread-safe `homeassistant.helpers.importlib.import_module` helper.
If it's possible the module may be imported from multiple different paths, use `async_import_module`: