Switch default media_player device class to settop for google assistant (#36003)
This commit is contained in:
1 parent
879e2d1afd
commit
ad6e21182e
3 files changed
+7
-6
No files matched your search
@@ -168,7 +168,7 @@ DEMO_DEVICES = [
|
||||
"action.devices.traits.Volume",
|
||||
"action.devices.traits.Modes",
|
||||
],
|
||||
"type": "action.devices.types.SWITCH",
|
||||
"type": "action.devices.types.SETTOP",
|
||||
"willReportState": False,
|
||||
},
|
||||
{
|
||||
@@ -179,14 +179,14 @@ DEMO_DEVICES = [
|
||||
"action.devices.traits.Volume",
|
||||
"action.devices.traits.Modes",
|
||||
],
|
||||
"type": "action.devices.types.SWITCH",
|
||||
"type": "action.devices.types.SETTOP",
|
||||
"willReportState": False,
|
||||
},
|
||||
{
|
||||
"id": "media_player.lounge_room",
|
||||
"name": {"name": "Lounge room"},
|
||||
"traits": ["action.devices.traits.OnOff", "action.devices.traits.Modes"],
|
||||
"type": "action.devices.types.SWITCH",
|
||||
"type": "action.devices.types.SETTOP",
|
||||
"willReportState": False,
|
||||
},
|
||||
{
|
||||
@@ -197,7 +197,7 @@ DEMO_DEVICES = [
|
||||
"action.devices.traits.Volume",
|
||||
"action.devices.traits.Modes",
|
||||
],
|
||||
"type": "action.devices.types.SWITCH",
|
||||
"type": "action.devices.types.SETTOP",
|
||||
"willReportState": False,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -743,7 +743,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.SWITCH"),
|
||||
("non_existing_class", "action.devices.types.SETTOP"),
|
||||
("tv", "action.devices.types.TV"),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user