Fix powercontrol media player alexa (#25080)
This commit is contained in:
1 parent
04b4284746
commit
78a5dc71ac
3 files changed
+38
-38
No files matched your search
@@ -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."""
|
||||
|
||||
Reference in new issue
Block a user