mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 01:28:27 +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
|
||||
) -> None:
|
||||
"""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(
|
||||
MEDIA_PLAYER_DOMAIN,
|
||||
SERVICE_PLAY_MEDIA,
|
||||
|
Reference in New Issue
Block a user