Assert default response from conversation trigger (#108231)
This commit is contained in:
parent
90f4900f2c
commit
91815ed5f9
1 changed files with 3 additions and 1 deletions
|
@ -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",
|
"conversation",
|
||||||
"process",
|
"process",
|
||||||
{
|
{
|
||||||
"text": "Ha ha ha",
|
"text": "Ha ha ha",
|
||||||
},
|
},
|
||||||
blocking=True,
|
blocking=True,
|
||||||
|
return_response=True,
|
||||||
)
|
)
|
||||||
|
assert service_response["response"]["speech"]["plain"]["speech"] == "Done"
|
||||||
|
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
assert len(calls) == 1
|
assert len(calls) == 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue