mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Update cover intent response (#119756)
* Update cover response * Fix intent test
This commit is contained in:
parent
25b3fe6b64
commit
3c08a02ecf
@ -18,7 +18,7 @@ async def async_setup_intents(hass: HomeAssistant) -> None:
|
|||||||
INTENT_OPEN_COVER,
|
INTENT_OPEN_COVER,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
SERVICE_OPEN_COVER,
|
SERVICE_OPEN_COVER,
|
||||||
"Opened {}",
|
"Opening {}",
|
||||||
description="Opens a cover",
|
description="Opens a cover",
|
||||||
platforms={DOMAIN},
|
platforms={DOMAIN},
|
||||||
),
|
),
|
||||||
@ -29,7 +29,7 @@ async def async_setup_intents(hass: HomeAssistant) -> None:
|
|||||||
INTENT_CLOSE_COVER,
|
INTENT_CLOSE_COVER,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
SERVICE_CLOSE_COVER,
|
SERVICE_CLOSE_COVER,
|
||||||
"Closed {}",
|
"Closing {}",
|
||||||
description="Closes a cover",
|
description="Closes a cover",
|
||||||
platforms={DOMAIN},
|
platforms={DOMAIN},
|
||||||
),
|
),
|
||||||
|
@ -28,7 +28,7 @@ async def test_open_cover_intent(hass: HomeAssistant) -> None:
|
|||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
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
|
assert len(calls) == 1
|
||||||
call = calls[0]
|
call = calls[0]
|
||||||
assert call.domain == DOMAIN
|
assert call.domain == DOMAIN
|
||||||
@ -51,7 +51,7 @@ async def test_close_cover_intent(hass: HomeAssistant) -> None:
|
|||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
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
|
assert len(calls) == 1
|
||||||
call = calls[0]
|
call = calls[0]
|
||||||
assert call.domain == DOMAIN
|
assert call.domain == DOMAIN
|
||||||
|
@ -91,7 +91,7 @@ async def test_cover_intents_loading(hass: HomeAssistant) -> None:
|
|||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
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
|
assert len(calls) == 1
|
||||||
call = calls[0]
|
call = calls[0]
|
||||||
assert call.domain == "cover"
|
assert call.domain == "cover"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user