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

Add category registry (#110897)

* Add category registry

* Add entity registry support

* Update homeassistant/components/config/entity_registry.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Use ulid instead

* Add tests for adding same name in different scopes

* Handle keyerror on update

* Lookup tweak

* Omit categories from entity registry snapshots

* Use base registry

* Update snapshots

* Update snapshots

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Franck Nijhof
2024-03-15 13:25:16 +01:00
committed by GitHub
parent 436c83e8a7
commit 0e2775667d
16 changed files with 2232 additions and 13 deletions

View File

@@ -59,6 +59,7 @@ from homeassistant.core import (
)
from homeassistant.helpers import (
area_registry as ar,
category_registry as cr,
device_registry as dr,
entity,
entity_platform,
@@ -334,6 +335,7 @@ async def async_test_home_assistant(
"homeassistant.helpers.restore_state.start.async_at_start",
):
await ar.async_load(hass)
await cr.async_load(hass)
await dr.async_load(hass)
await er.async_load(hass)
await fr.async_load(hass)