From 78d6aed623259101ce6c294f897dadff9ae290b2 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 14 May 2024 12:13:15 +0900 Subject: [PATCH] more docs --- docs/asyncio_thread_safety.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/asyncio_thread_safety.md b/docs/asyncio_thread_safety.md index 61a8a5a1..9fd29508 100644 --- a/docs/asyncio_thread_safety.md +++ b/docs/asyncio_thread_safety.md @@ -79,3 +79,15 @@ When calling the dispatcher from a thread other than the event loop thread, inst #### async_render_to_info Templates must be rendered in the event loop thread. There is no sync API to render templates. Use `hass.add_job` to schedule a function in the event loop that calls `async_render_to_info`. + +#### area_registry.async_create + +The area registry must be modified in the event loop thread. There is no sync API for the area registry. Use `hass.add_job` to schedule a function in the event loop that calls `area_registry.async_create`. + +#### area_registry.async_delete + +The area registry must be modified in the event loop thread. There is no sync API for the area registry. Use `hass.add_job` to schedule a function in the event loop that calls `area_registry.async_delete`. + +#### area_registry.async_update + +The area registry must be modified in the event loop thread. There is no sync API for the area registry. Use `hass.add_job` to schedule a function in the event loop that calls `area_registry.async_update`. \ No newline at end of file