mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 17:48:26 +00:00
Explicitly pass config_entry to miele coordinator (#149691)
This commit is contained in:
parent
389a1251a1
commit
1ead01bc9a
@ -66,7 +66,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: MieleConfigEntry) -> boo
|
|||||||
) from err
|
) from err
|
||||||
|
|
||||||
# Setup MieleAPI and coordinator for data fetch
|
# Setup MieleAPI and coordinator for data fetch
|
||||||
coordinator = MieleDataUpdateCoordinator(hass, auth)
|
coordinator = MieleDataUpdateCoordinator(hass, entry, auth)
|
||||||
await coordinator.async_config_entry_first_refresh()
|
await coordinator.async_config_entry_first_refresh()
|
||||||
entry.runtime_data = coordinator
|
entry.runtime_data = coordinator
|
||||||
|
|
||||||
|
@ -42,12 +42,14 @@ class MieleDataUpdateCoordinator(DataUpdateCoordinator[MieleCoordinatorData]):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
config_entry: MieleConfigEntry,
|
||||||
api: AsyncConfigEntryAuth,
|
api: AsyncConfigEntryAuth,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Initialize the Miele data coordinator."""
|
"""Initialize the Miele data coordinator."""
|
||||||
super().__init__(
|
super().__init__(
|
||||||
hass,
|
hass,
|
||||||
_LOGGER,
|
_LOGGER,
|
||||||
|
config_entry=config_entry,
|
||||||
name=DOMAIN,
|
name=DOMAIN,
|
||||||
update_interval=timedelta(seconds=120),
|
update_interval=timedelta(seconds=120),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user