Fixed an incorrect reference in the entity registry (#17775)

This commit is contained in:
Aaron Bach 2018-10-24 21:53:18 -06:00 committed by GitHub
parent a629e1bec2
commit bd23145331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ class EntityRegistry:
for listener_ref in new.update_listeners:
listener = listener_ref()
if listener is None:
to_remove.append(listener)
to_remove.append(listener_ref)
else:
try:
listener.async_registry_updated(old, new)