Add device_id to sentence trigger and external conversation APIs (#113094)

* Add device_id to sentence trigger and external conversation APIs

* Remove device_id from external API

* Update tests/components/conversation/snapshots/test_init.ambr

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
Michael Hansen 2024-03-12 07:50:06 -05:00 committed by GitHub
parent 120525e94f
commit 556855f54e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 61 additions and 13 deletions

View file

@ -535,9 +535,12 @@ async def test_turn_on_intent(
async def test_service_fails(hass: HomeAssistant, init_components) -> None:
"""Test calling the turn on intent."""
with pytest.raises(HomeAssistantError), patch(
"homeassistant.components.conversation.async_converse",
side_effect=intent.IntentHandleError,
with (
pytest.raises(HomeAssistantError),
patch(
"homeassistant.components.conversation.async_converse",
side_effect=intent.IntentHandleError,
),
):
await hass.services.async_call(
"conversation",