From 3c6810afaf3887ca54d64fa6678cf6a1bfb62461 Mon Sep 17 00:00:00 2001 From: Artur Pragacz <49985303+arturpragacz@users.noreply.github.com> Date: Wed, 16 Jul 2025 12:21:56 +0200 Subject: [PATCH] Fix new line in asyncio_imports.md (#2725) --- docs/asyncio_imports.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/asyncio_imports.md b/docs/asyncio_imports.md index 4774143e..23652546 100644 --- a/docs/asyncio_imports.md +++ b/docs/asyncio_imports.md @@ -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`: