Switch media player to SWITCH type (#23914)

MEDIA device type is being rejected by google now.
This commit is contained in:
Joakim Plate authored and Paulus Schoutsen committed 2019-05-16 22:34:40 +02:00
1 parent 49d6d7c656
commit c8cf06b8b7
3 files changed
+6 -7

No files matched your search

@@ -147,7 +147,7 @@ DEMO_DEVICES = [{
'action.devices.traits.Modes'
],
'type':
'action.devices.types.MEDIA',
'action.devices.types.SWITCH',
'willReportState':
False
}, {
@@ -162,7 +162,7 @@ DEMO_DEVICES = [{
'action.devices.traits.Modes'
],
'type':
'action.devices.types.MEDIA',
'action.devices.types.SWITCH',
'willReportState':
False
}, {
@@ -171,7 +171,7 @@ DEMO_DEVICES = [{
'name': 'Lounge room'
},
'traits': ['action.devices.traits.OnOff', 'action.devices.traits.Modes'],
'type': 'action.devices.types.MEDIA',
'type': 'action.devices.types.SWITCH',
'willReportState': False
}, {
'id':
@@ -182,7 +182,7 @@ DEMO_DEVICES = [{
'traits':
['action.devices.traits.OnOff', 'action.devices.traits.Volume'],
'type':
'action.devices.types.MEDIA',
'action.devices.types.SWITCH',
'willReportState':
False
}, {
@@ -686,7 +686,7 @@ async def test_device_class_cover(hass, device_class, google_type):
@pytest.mark.parametrize("device_class,google_type", [
('non_existing_class', 'action.devices.types.MEDIA'),
('non_existing_class', 'action.devices.types.SWITCH'),
('speaker', 'action.devices.types.SPEAKER'),
('tv', 'action.devices.types.TV'),
])