Explicitly pass in the config_entry in goodwe coordinator (#137838)

explicitly pass in the config_entry in coordinator
pull/137857/head
Michael 2025-02-08 15:34:34 +01:00 committed by GitHub
parent 1179278d50
commit 7c9312b3cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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,
)