Update cover intent response (#119756)

* Update cover response

* Fix intent test
This commit is contained in:
Paulus Schoutsen 2024-06-18 09:54:08 -04:00 committed by GitHub
parent 25b3fe6b64
commit 3c08a02ecf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View file

@ -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},
),

View file

@ -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

View file

@ -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"