From fe75dae4192430e7d3f572e2ddcdc008ef7df169 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 14 May 2024 12:08:10 +0900 Subject: [PATCH] more docs --- docs/asyncio_thread_safety.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/asyncio_thread_safety.md b/docs/asyncio_thread_safety.md index b07bb754..61a8a5a1 100644 --- a/docs/asyncio_thread_safety.md +++ b/docs/asyncio_thread_safety.md @@ -74,4 +74,8 @@ Updating config entry must be done in the event loop thread. There is no sync AP #### async_dispatcher_send -When calling the dispatcher from a thread other than the event loop thread, instead use `dispatcher_send`. \ No newline at end of file +When calling the dispatcher from a thread other than the event loop thread, instead use `dispatcher_send`. + +#### 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`.