mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
Fixed an incorrect reference in the entity registry (#17775)
This commit is contained in:
parent
a4773dc3e4
commit
af03390c4f
@ -185,7 +185,7 @@ class EntityRegistry:
|
|||||||
for listener_ref in new.update_listeners:
|
for listener_ref in new.update_listeners:
|
||||||
listener = listener_ref()
|
listener = listener_ref()
|
||||||
if listener is None:
|
if listener is None:
|
||||||
to_remove.append(listener)
|
to_remove.append(listener_ref)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
listener.async_registry_updated(old, new)
|
listener.async_registry_updated(old, new)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user