From d8ed10bcc766b5384dad01698a4322ab23dc4c40 Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Fri, 23 May 2025 21:10:26 +0200 Subject: [PATCH] Use _handle_coordinator_update() instead of own callback in Feedreader event entity (#145520) use _handle_coordinator_update() instead of own callback --- homeassistant/components/feedreader/event.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/feedreader/event.py b/homeassistant/components/feedreader/event.py index 578b5b1e175..dc7c9e880d5 100644 --- a/homeassistant/components/feedreader/event.py +++ b/homeassistant/components/feedreader/event.py @@ -61,15 +61,9 @@ class FeedReaderEvent(CoordinatorEntity[FeedReaderCoordinator], EventEntity): entry_type=DeviceEntryType.SERVICE, ) - async def async_added_to_hass(self) -> None: - """Entity added to hass.""" - await super().async_added_to_hass() - self.async_on_remove( - self.coordinator.async_add_listener(self._async_handle_update) - ) - @callback - def _async_handle_update(self) -> None: + def _handle_coordinator_update(self) -> None: + """Handle updated data from the coordinator.""" if (data := self.coordinator.data) is None or not data: return