Skip to content

Commit 3c6810a

Browse files
authored
Fix new line in asyncio_imports.md (#2725)
1 parent e09bd74 commit 3c6810a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/asyncio_imports.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ If the module is only used conditionally, and will only ever be imported in a si
2525

2626
- For imports inside of Home Assistant `hass.async_add_executor_job(_function_that_does_late_import)`
2727
- 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)
28+
2829
If the same module may be imported concurrently in different parts of the application, use the thread-safe `homeassistant.helpers.importlib.import_module` helper.
2930

3031
If it's possible the module may be imported from multiple different paths, use `async_import_module`:

0 commit comments

Comments
 (0)