Update cover intent response (#119756)
* Update cover response * Fix intent test
This commit is contained in:
parent
25b3fe6b64
commit
3c08a02ecf
3 changed files with 5 additions and 5 deletions
|
@ -18,7 +18,7 @@ async def async_setup_intents(hass: HomeAssistant) -> None:
|
|||
INTENT_OPEN_COVER,
|
||||
DOMAIN,
|
||||
SERVICE_OPEN_COVER,
|
||||
"Opened {}",
|
||||
"Opening {}",
|
||||
description="Opens a cover",
|
||||
platforms={DOMAIN},
|
||||
),
|
||||
|
@ -29,7 +29,7 @@ async def async_setup_intents(hass: HomeAssistant) -> None:
|
|||
INTENT_CLOSE_COVER,
|
||||
DOMAIN,
|
||||
SERVICE_CLOSE_COVER,
|
||||
"Closed {}",
|
||||
"Closing {}",
|
||||
description="Closes a cover",
|
||||
platforms={DOMAIN},
|
||||
),
|
||||
|
|
|
@ -28,7 +28,7 @@ async def test_open_cover_intent(hass: HomeAssistant) -> None:
|
|||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert response.speech["plain"]["speech"] == "Opened garage door"
|
||||
assert response.speech["plain"]["speech"] == "Opening garage door"
|
||||
assert len(calls) == 1
|
||||
call = calls[0]
|
||||
assert call.domain == DOMAIN
|
||||
|
@ -51,7 +51,7 @@ async def test_close_cover_intent(hass: HomeAssistant) -> None:
|
|||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert response.speech["plain"]["speech"] == "Closed garage door"
|
||||
assert response.speech["plain"]["speech"] == "Closing garage door"
|
||||
assert len(calls) == 1
|
||||
call = calls[0]
|
||||
assert call.domain == DOMAIN
|
||||
|
|
|
@ -91,7 +91,7 @@ async def test_cover_intents_loading(hass: HomeAssistant) -> None:
|
|||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert response.speech["plain"]["speech"] == "Opened garage door"
|
||||
assert response.speech["plain"]["speech"] == "Opening garage door"
|
||||
assert len(calls) == 1
|
||||
call = calls[0]
|
||||
assert call.domain == "cover"
|
||||
|
|
Loading…
Add table
Reference in a new issue