From 7c9312b3cfe54fea60e7fbc1762cd2f661f6c3c1 Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Sat, 8 Feb 2025 15:34:34 +0100 Subject: [PATCH] Explicitly pass in the config_entry in goodwe coordinator (#137838) explicitly pass in the config_entry in coordinator --- homeassistant/components/goodwe/coordinator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/goodwe/coordinator.py b/homeassistant/components/goodwe/coordinator.py index a8ee7df6337..914ba3155b4 100644 --- a/homeassistant/components/goodwe/coordinator.py +++ b/homeassistant/components/goodwe/coordinator.py @@ -19,6 +19,8 @@ _LOGGER = logging.getLogger(__name__) class GoodweUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]): """Gather data for the energy device.""" + config_entry: ConfigEntry + def __init__( self, hass: HomeAssistant, @@ -29,6 +31,7 @@ class GoodweUpdateCoordinator(DataUpdateCoordinator[dict[str, Any]]): super().__init__( hass, _LOGGER, + config_entry=entry, name=entry.title, update_interval=SCAN_INTERVAL, )