mirror of
https://github.com/home-assistant/core.git
synced 2025-12-22 20:09:35 +00:00
* Require config entry when setting Conversation agent, add new unset agent method * Remove onboarding from conversation agent * Type attribution * Wrap async_process params in ConversationInput object
16 lines
279 B
Python
16 lines
279 B
Python
"""Conversation test helpers."""
|
|
|
|
import pytest
|
|
|
|
from homeassistant.components import conversation
|
|
|
|
from . import MockAgent
|
|
|
|
|
|
@pytest.fixture
|
|
def mock_agent(hass):
|
|
"""Mock agent."""
|
|
agent = MockAgent()
|
|
conversation.async_set_agent(hass, None, agent)
|
|
return agent
|