Skip to content

Commit

Permalink
Assert default response from conversation trigger (home-assistant#108231
Browse files Browse the repository at this point in the history
)
  • Loading branch information
emontnemery authored Jan 17, 2024
1 parent 90f4900 commit 91815ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/components/conversation/test_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,16 @@ async def test_if_fires_on_event(hass: HomeAssistant, calls, setup_comp) -> None
},
)

await hass.services.async_call(
service_response = await hass.services.async_call(
"conversation",
"process",
{
"text": "Ha ha ha",
},
blocking=True,
return_response=True,
)
assert service_response["response"]["speech"]["plain"]["speech"] == "Done"

await hass.async_block_till_done()
assert len(calls) == 1
Expand Down

0 comments on commit 91815ed

Please sign in to comment.