mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-20 15:56:30 +00:00
Fix new line in asyncio_imports.md (#2725)
This commit is contained in:
parent
e09bd74614
commit
3c6810afaf
@ -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`:
|
||||
|
Loading…
x
Reference in New Issue
Block a user