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

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)