Add conversation entity (#114518)

* Default agent as entity

* Migrate constant to point at new value

* Fix tests

* Fix more tests

* Move assist pipeline back to cloud after dependenceis
This commit is contained in:
Paulus Schoutsen 2024-04-01 21:34:25 -04:00 committed by GitHub
parent b1af590eed
commit d2e4f5f36e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 566 additions and 177 deletions

View file

@ -327,6 +327,7 @@ async def test_conversation_agent(
"""Test GoogleAssistantConversationAgent."""
await setup_integration()
assert await async_setup_component(hass, "homeassistant", {})
assert await async_setup_component(hass, "conversation", {})
entries = hass.config_entries.async_entries(DOMAIN)
@ -334,7 +335,7 @@ async def test_conversation_agent(
entry = entries[0]
assert entry.state is ConfigEntryState.LOADED
agent = await conversation.get_agent_manager(hass).async_get_agent(entry.entry_id)
agent = conversation.get_agent_manager(hass).async_get_agent(entry.entry_id)
assert agent.supported_languages == SUPPORTED_LANGUAGE_CODES
text1 = "tell me a joke"
@ -365,6 +366,7 @@ async def test_conversation_agent_refresh_token(
"""Test GoogleAssistantConversationAgent when token is expired."""
await setup_integration()
assert await async_setup_component(hass, "homeassistant", {})
assert await async_setup_component(hass, "conversation", {})
entries = hass.config_entries.async_entries(DOMAIN)
@ -416,6 +418,7 @@ async def test_conversation_agent_language_changed(
"""Test GoogleAssistantConversationAgent when language is changed."""
await setup_integration()
assert await async_setup_component(hass, "homeassistant", {})
assert await async_setup_component(hass, "conversation", {})
entries = hass.config_entries.async_entries(DOMAIN)