Guard for non-string inputs in Alexa (#67348)

This commit is contained in:
Paulus Schoutsen 2022-02-27 12:59:05 -08:00 committed by GitHub
parent f9b02d5cab
commit 9c440d8aa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -182,7 +182,7 @@ async def test_api_increase_color_temp(hass, result, initial):
@pytest.mark.parametrize(
"domain,payload,source_list,idx",
[
("media_player", "GAME CONSOLE", ["tv", "game console"], 1),
("media_player", "GAME CONSOLE", ["tv", "game console", 10000], 1),
("media_player", "SATELLITE TV", ["satellite-tv", "game console"], 0),
("media_player", "SATELLITE TV", ["satellite_tv", "game console"], 0),
("media_player", "BAD DEVICE", ["satellite_tv", "game console"], None),