Make get_chat_session a callback context manager (#137146)

This commit is contained in:
Paulus Schoutsen
2025-02-01 23:37:24 -05:00
committed by GitHub
parent 2ce585463c
commit dd9bd8ef73
8 changed files with 69 additions and 72 deletions

View File

@@ -1094,7 +1094,7 @@ class PipelineRun:
# It was already handled, create response and add to chat history
if intent_response is not None:
async with (
with (
chat_session.async_get_chat_session(
self.hass, user_input.conversation_id
) as session,