1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

LLM Tools: Add device_id (#117884)

This commit is contained in:
Denis Shulyaka
2024-05-22 04:24:46 +03:00
committed by GitHub
parent 4ed45a322c
commit 009c9e79ae
4 changed files with 11 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ async def test_call_tool_no_existing(hass: HomeAssistant) -> None:
None,
None,
None,
None,
),
)
@@ -87,6 +88,7 @@ async def test_assist_api(hass: HomeAssistant) -> None:
user_prompt="test_text",
language="*",
assistant="test_assistant",
device_id="test_device",
)
with patch(
@@ -106,6 +108,7 @@ async def test_assist_api(hass: HomeAssistant) -> None:
test_context,
"*",
"test_assistant",
"test_device",
)
assert response == {
"card": {},