2023-01-19 13:59:02 -05:00
|
|
|
"""Conversation test helpers."""
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
from homeassistant.components import conversation
|
|
|
|
|
|
|
|
from . import MockAgent
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
|
|
def mock_agent(hass):
|
|
|
|
"""Mock agent."""
|
|
|
|
agent = MockAgent()
|
2023-01-24 22:47:49 -05:00
|
|
|
conversation.async_set_agent(hass, None, agent)
|
2023-01-19 13:59:02 -05:00
|
|
|
return agent
|