From 879fedbcbd6899bbbd0bee1691bdbc58f93c9e84 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 14 May 2024 12:36:00 +0900 Subject: [PATCH] adjust more --- docs/asyncio_thread_safety.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/asyncio_thread_safety.md b/docs/asyncio_thread_safety.md index 089d5e5f..7f668487 100644 --- a/docs/asyncio_thread_safety.md +++ b/docs/asyncio_thread_safety.md @@ -48,6 +48,8 @@ In the below example, everything will run in the event loop thread, and when `as ### Specific API calls +You may find you need to call one of the async API calls from a thread other than the event loop thread. In most cases, `hass.add_job` can safely call an async API from another thread. Some helpers have specific sync APIs to use when calling from another thread. Below is a list of the most commonly called async APIs and the method to call them from another thread. + #### hass.async_create_task When creating a task from a thread other than the event loop thread, instead use `hass.create_task`