mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Explicitly pass in the config_entry in analytics_insight coordinator init (#137706)
explicitly pass in the config_entry in analytics_insight coordinator init
This commit is contained in:
parent
ee80966a10
commit
1d3cef5c6f
@ -48,7 +48,7 @@ async def async_setup_entry(
|
|||||||
continue
|
continue
|
||||||
names[integration] = integrations[integration].title
|
names[integration] = integrations[integration].title
|
||||||
|
|
||||||
coordinator = HomeassistantAnalyticsDataUpdateCoordinator(hass, client)
|
coordinator = HomeassistantAnalyticsDataUpdateCoordinator(hass, entry, client)
|
||||||
|
|
||||||
await coordinator.async_config_entry_first_refresh()
|
await coordinator.async_config_entry_first_refresh()
|
||||||
|
|
||||||
|
@ -46,12 +46,16 @@ class HomeassistantAnalyticsDataUpdateCoordinator(DataUpdateCoordinator[Analytic
|
|||||||
config_entry: AnalyticsInsightsConfigEntry
|
config_entry: AnalyticsInsightsConfigEntry
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, hass: HomeAssistant, client: HomeassistantAnalyticsClient
|
self,
|
||||||
|
hass: HomeAssistant,
|
||||||
|
config_entry: AnalyticsInsightsConfigEntry,
|
||||||
|
client: HomeassistantAnalyticsClient,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Initialize the Homeassistant Analytics data coordinator."""
|
"""Initialize the Homeassistant Analytics data coordinator."""
|
||||||
super().__init__(
|
super().__init__(
|
||||||
hass,
|
hass,
|
||||||
LOGGER,
|
LOGGER,
|
||||||
|
config_entry=config_entry,
|
||||||
name=DOMAIN,
|
name=DOMAIN,
|
||||||
update_interval=timedelta(hours=12),
|
update_interval=timedelta(hours=12),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user