mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Assert default response from conversation trigger (#108231)
This commit is contained in:
parent
90f4900f2c
commit
91815ed5f9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user