Add update events to registries (#23746)
* Add update events to registries * Add to websocket
This commit is contained in:
parent
6e7a7ba4a0
commit
07ee3b2eb9
8 changed files with 187 additions and 14 deletions
|
@ -10,6 +10,9 @@ from homeassistant.const import (
|
|||
EVENT_THEMES_UPDATED)
|
||||
from homeassistant.components.persistent_notification import (
|
||||
EVENT_PERSISTENT_NOTIFICATIONS_UPDATED)
|
||||
from homeassistant.helpers.area_registry import EVENT_AREA_REGISTRY_UPDATED
|
||||
from homeassistant.helpers.device_registry import EVENT_DEVICE_REGISTRY_UPDATED
|
||||
from homeassistant.helpers.entity_registry import EVENT_ENTITY_REGISTRY_UPDATED
|
||||
|
||||
# These are events that do not contain any sensitive data
|
||||
# Except for state_changed, which is handled accordingly.
|
||||
|
@ -20,4 +23,7 @@ SUBSCRIBE_WHITELIST = {
|
|||
EVENT_SERVICE_REMOVED,
|
||||
EVENT_STATE_CHANGED,
|
||||
EVENT_THEMES_UPDATED,
|
||||
EVENT_AREA_REGISTRY_UPDATED,
|
||||
EVENT_DEVICE_REGISTRY_UPDATED,
|
||||
EVENT_ENTITY_REGISTRY_UPDATED,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue