Fix powercontrol media player alexa (#25080)

This commit is contained in:
Pascal Vizeli authored and Paulus Schoutsen committed 2019-07-11 08:35:46 -07:00
1 parent 04b4284746
commit 78a5dc71ac
3 files changed
+38 -38

No files matched your search

+11
View File
@@ -558,12 +558,23 @@ async def test_media_player_power(hass):
assert_endpoint_capabilities(
appliance,
'Alexa.InputController',
'Alexa.PowerController',
'Alexa.Speaker',
'Alexa.StepSpeaker',
'Alexa.PlaybackController',
'Alexa.EndpointHealth',
)
await assert_request_calls_service(
'Alexa.PowerController', 'TurnOn', 'media_player#test',
'media_player.media_play',
hass)
await assert_request_calls_service(
'Alexa.PowerController', 'TurnOff', 'media_player#test',
'media_player.media_stop',
hass)
async def test_alert(hass):
"""Test alert discovery."""