mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 17:18:23 +00:00
Merge branch 'ai-task-structured-data' of https://github.com/allenporter/home-assistant-core into ai-task-structured-data
This commit is contained in:
commit
ff58c4e564
@ -63,19 +63,6 @@ class MockAITaskEntity(AITaskEntity):
|
|||||||
data=data,
|
data=data,
|
||||||
)
|
)
|
||||||
|
|
||||||
async def _async_generate_structured_data(
|
|
||||||
self, task: GenDataTask, chat_log: ChatLog, structure: dict[str, dict]
|
|
||||||
) -> GenDataTaskResult:
|
|
||||||
"""Mock handling of generate data task."""
|
|
||||||
self.mock_generate_data_tasks.append(task)
|
|
||||||
chat_log.async_add_assistant_content_without_tools(
|
|
||||||
AssistantContent(self.entity_id, "Mock result")
|
|
||||||
)
|
|
||||||
return GenDataTaskResult(
|
|
||||||
conversation_id=chat_log.conversation_id,
|
|
||||||
data="Mock result",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mock_config_entry(hass: HomeAssistant) -> MockConfigEntry:
|
def mock_config_entry(hass: HomeAssistant) -> MockConfigEntry:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user