From 4056c4c2cc826be896b8fd6d79872c8f06860a51 Mon Sep 17 00:00:00 2001 From: tronikos Date: Wed, 29 May 2024 05:03:43 -0700 Subject: [PATCH] Ask LLM to pass area name and domain (#118357) --- homeassistant/helpers/llm.py | 2 +- tests/helpers/test_llm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/helpers/llm.py b/homeassistant/helpers/llm.py index b87a4b8dcb0..5a39bfaa726 100644 --- a/homeassistant/helpers/llm.py +++ b/homeassistant/helpers/llm.py @@ -250,7 +250,7 @@ class AssistAPI(API): prompt = [ ( "Call the intent tools to control Home Assistant. " - "When controlling an area, prefer passing area name." + "When controlling an area, prefer passing area name and domain." ) ] area: ar.AreaEntry | None = None diff --git a/tests/helpers/test_llm.py b/tests/helpers/test_llm.py index 0c45e82a08f..a59b4767196 100644 --- a/tests/helpers/test_llm.py +++ b/tests/helpers/test_llm.py @@ -423,7 +423,7 @@ async def test_assist_api_prompt( ) first_part_prompt = ( "Call the intent tools to control Home Assistant. " - "When controlling an area, prefer passing area name." + "When controlling an area, prefer passing area name and domain." ) no_timer_prompt = "This device does not support timers."