mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Ensure connection test sound has no preannouncement (#141647)
This commit is contained in:
parent
e7f8b9ad92
commit
4da5f6188d
@ -198,7 +198,8 @@ async def websocket_test_connection(
|
|||||||
|
|
||||||
hass.async_create_background_task(
|
hass.async_create_background_task(
|
||||||
satellite.async_internal_announce(
|
satellite.async_internal_announce(
|
||||||
media_id=f"{CONNECTION_TEST_URL_BASE}/{connection_id}"
|
media_id=f"{CONNECTION_TEST_URL_BASE}/{connection_id}",
|
||||||
|
preannounce_media_id=None,
|
||||||
),
|
),
|
||||||
f"assist_satellite_connection_test_{msg['entity_id']}",
|
f"assist_satellite_connection_test_{msg['entity_id']}",
|
||||||
)
|
)
|
||||||
|
@ -445,6 +445,7 @@ async def test_connection_test(
|
|||||||
|
|
||||||
assert len(entity.announcements) == 1
|
assert len(entity.announcements) == 1
|
||||||
assert entity.announcements[0].message == ""
|
assert entity.announcements[0].message == ""
|
||||||
|
assert entity.announcements[0].preannounce_media_id is None
|
||||||
announcement_media_id = entity.announcements[0].media_id
|
announcement_media_id = entity.announcements[0].media_id
|
||||||
hass_url = "http://10.10.10.10:8123"
|
hass_url = "http://10.10.10.10:8123"
|
||||||
assert announcement_media_id.startswith(
|
assert announcement_media_id.startswith(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user