mirror of
https://github.com/home-assistant/core.git
synced 2025-07-11 15:27:08 +00:00
Explicitly pass in the config_entry in zeversolar coordinator (#137857)
explicitly pass in the config_entry in coordinator
This commit is contained in:
parent
8976e7f4ea
commit
367dafdfe7
@ -20,11 +20,14 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
class ZeversolarCoordinator(DataUpdateCoordinator[zeversolar.ZeverSolarData]):
|
class ZeversolarCoordinator(DataUpdateCoordinator[zeversolar.ZeverSolarData]):
|
||||||
"""Data update coordinator."""
|
"""Data update coordinator."""
|
||||||
|
|
||||||
|
config_entry: ConfigEntry
|
||||||
|
|
||||||
def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None:
|
def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None:
|
||||||
"""Initialize the coordinator."""
|
"""Initialize the coordinator."""
|
||||||
super().__init__(
|
super().__init__(
|
||||||
hass,
|
hass,
|
||||||
_LOGGER,
|
_LOGGER,
|
||||||
|
config_entry=entry,
|
||||||
name=DOMAIN,
|
name=DOMAIN,
|
||||||
update_interval=timedelta(minutes=1),
|
update_interval=timedelta(minutes=1),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user