diff --git a/homeassistant/helpers/llm.py b/homeassistant/helpers/llm.py index ae6cbbe672f..324a0684351 100644 --- a/homeassistant/helpers/llm.py +++ b/homeassistant/helpers/llm.py @@ -195,7 +195,10 @@ class IntentTool(Tool): assistant=tool_context.assistant, device_id=tool_context.device_id, ) - return intent_response.as_dict() + response = intent_response.as_dict() + del response["language"] + del response["card"] + return response class AssistAPI(API): diff --git a/tests/helpers/test_llm.py b/tests/helpers/test_llm.py index 4aeb0cd93b7..0c45e82a08f 100644 --- a/tests/helpers/test_llm.py +++ b/tests/helpers/test_llm.py @@ -165,13 +165,11 @@ async def test_assist_api( device_id="test_device", ) assert response == { - "card": {}, "data": { "failed": [], "success": [], "targets": [], }, - "language": "*", "response_type": "action_done", "speech": {}, }