Mark device conditions from hidden or auxiliary entities as secondary (#70333)
This commit is contained in:
parent
7c0b0f7cc1
commit
150f173eed
18 changed files with 800 additions and 95 deletions
|
@ -105,6 +105,7 @@ async def test_websocket_get_conditions(hass, hass_ws_client, device_reg, entity
|
|||
"type": "is_off",
|
||||
"device_id": device_entry.id,
|
||||
"entity_id": "light.test_5678",
|
||||
"metadata": {"secondary": False},
|
||||
},
|
||||
{
|
||||
"condition": "device",
|
||||
|
@ -112,6 +113,7 @@ async def test_websocket_get_conditions(hass, hass_ws_client, device_reg, entity
|
|||
"type": "is_on",
|
||||
"device_id": device_entry.id,
|
||||
"entity_id": "light.test_5678",
|
||||
"metadata": {"secondary": False},
|
||||
},
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue