Make EntityRegistryDisabledHandler._handle_entry_updated a callback (#110966)

This commit is contained in:
J. Nick Koston 2024-02-19 14:44:57 -06:00 committed by GitHub
parent e83c7c8770
commit b35490404a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2251,7 +2251,8 @@ class EntityRegistryDisabledHandler:
event_filter=_handle_entry_updated_filter,
)
async def _handle_entry_updated(self, event: Event) -> None:
@callback
def _handle_entry_updated(self, event: Event) -> None:
"""Handle entity registry entry update."""
if self.registry is None:
self.registry = entity_registry.async_get(self.hass)