1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Mark device triggers from hidden or auxiliary entities as secondary (#70335)

* Mark device triggers from hidden or auxiliary entities as secondary

* Update tests
This commit is contained in:
Erik Montnemery
2022-04-21 08:01:32 +02:00
committed by GitHub
parent 0e0c0ce22b
commit 5e50a8abd5
38 changed files with 1021 additions and 304 deletions

View File

@@ -57,17 +57,12 @@ async def test_get_triggers(hass, device_reg, entity_reg):
{
"platform": "device",
"domain": DOMAIN,
"type": "turn_off",
"type": trigger,
"device_id": device_entry.id,
"entity_id": f"{MP_DOMAIN}.kodi_5678",
},
{
"platform": "device",
"domain": DOMAIN,
"type": "turn_on",
"device_id": device_entry.id,
"entity_id": f"{MP_DOMAIN}.kodi_5678",
},
"metadata": {"secondary": False},
}
for trigger in ["turn_off", "turn_on"]
]
# Test triggers are either kodi specific triggers or media_player entity triggers