Mark device conditions from hidden or auxiliary entities as secondary (#70333)

This commit is contained in:
Erik Montnemery 2022-04-20 21:41:59 +02:00 committed by GitHub
parent 7c0b0f7cc1
commit 150f173eed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 800 additions and 95 deletions

View file

@ -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},
},
]