Explicitly pass in the config_entry in zeversolar coordinator (#137857)

explicitly pass in the config_entry in coordinator
This commit is contained in:
Michael 2025-02-08 16:45:23 +01:00 committed by GitHub
parent 8976e7f4ea
commit 367dafdfe7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,11 +20,14 @@ _LOGGER = logging.getLogger(__name__)
class ZeversolarCoordinator(DataUpdateCoordinator[zeversolar.ZeverSolarData]):
"""Data update coordinator."""
config_entry: ConfigEntry
def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Initialize the coordinator."""
super().__init__(
hass,
_LOGGER,
config_entry=entry,
name=DOMAIN,
update_interval=timedelta(minutes=1),
)