From 3c08a02ecfe2d88c634beb63c629d5e62459808d Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 18 Jun 2024 09:54:08 -0400 Subject: [PATCH] Update cover intent response (#119756) * Update cover response * Fix intent test --- homeassistant/components/cover/intent.py | 4 ++-- tests/components/cover/test_intent.py | 4 ++-- tests/components/intent/test_init.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/cover/intent.py b/homeassistant/components/cover/intent.py index f347c8cc104..b38f698ac3d 100644 --- a/homeassistant/components/cover/intent.py +++ b/homeassistant/components/cover/intent.py @@ -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}, ), diff --git a/tests/components/cover/test_intent.py b/tests/components/cover/test_intent.py index b1dbe786065..8ee621596db 100644 --- a/tests/components/cover/test_intent.py +++ b/tests/components/cover/test_intent.py @@ -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 diff --git a/tests/components/intent/test_init.py b/tests/components/intent/test_init.py index 09128681b9e..7288c4855af 100644 --- a/tests/components/intent/test_init.py +++ b/tests/components/intent/test_init.py @@ -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"