mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:12:06 +00:00
Check for error in test_squeezebox_play_media_with_announce_volume_invalid for Squeezebox (#149044)
This commit is contained in:
@ -510,7 +510,10 @@ async def test_squeezebox_play_media_with_announce_volume_invalid(
|
|||||||
hass: HomeAssistant, configured_player: MagicMock, announce_volume: str | int
|
hass: HomeAssistant, configured_player: MagicMock, announce_volume: str | int
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test play service call with announce and volume zero."""
|
"""Test play service call with announce and volume zero."""
|
||||||
with pytest.raises(ServiceValidationError):
|
with pytest.raises(
|
||||||
|
ServiceValidationError,
|
||||||
|
match="announce_volume must be a number greater than 0 and less than or equal to 1",
|
||||||
|
):
|
||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
MEDIA_PLAYER_DOMAIN,
|
MEDIA_PLAYER_DOMAIN,
|
||||||
SERVICE_PLAY_MEDIA,
|
SERVICE_PLAY_MEDIA,
|
||||||
|
Reference in New Issue
Block a user