mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Explicitly pass in the config_entry in google coordinator (#137839)
explicitly pass in the config_entry in coordinator
This commit is contained in:
parent
70d5685b72
commit
9e091f7a73
@ -266,6 +266,7 @@ async def async_setup_entry(
|
|||||||
if not entity_description.local_sync:
|
if not entity_description.local_sync:
|
||||||
coordinator = CalendarQueryUpdateCoordinator(
|
coordinator = CalendarQueryUpdateCoordinator(
|
||||||
hass,
|
hass,
|
||||||
|
config_entry,
|
||||||
calendar_service,
|
calendar_service,
|
||||||
entity_description.name or entity_description.key,
|
entity_description.name or entity_description.key,
|
||||||
calendar_id,
|
calendar_id,
|
||||||
@ -285,6 +286,7 @@ async def async_setup_entry(
|
|||||||
)
|
)
|
||||||
coordinator = CalendarSyncUpdateCoordinator(
|
coordinator = CalendarSyncUpdateCoordinator(
|
||||||
hass,
|
hass,
|
||||||
|
config_entry,
|
||||||
sync,
|
sync,
|
||||||
entity_description.name or entity_description.key,
|
entity_description.name or entity_description.key,
|
||||||
)
|
)
|
||||||
|
@ -52,6 +52,7 @@ class CalendarSyncUpdateCoordinator(DataUpdateCoordinator[Timeline]):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
config_entry: ConfigEntry,
|
||||||
sync: CalendarEventSyncManager,
|
sync: CalendarEventSyncManager,
|
||||||
name: str,
|
name: str,
|
||||||
) -> None:
|
) -> None:
|
||||||
@ -59,6 +60,7 @@ class CalendarSyncUpdateCoordinator(DataUpdateCoordinator[Timeline]):
|
|||||||
super().__init__(
|
super().__init__(
|
||||||
hass,
|
hass,
|
||||||
_LOGGER,
|
_LOGGER,
|
||||||
|
config_entry=config_entry,
|
||||||
name=name,
|
name=name,
|
||||||
update_interval=MIN_TIME_BETWEEN_UPDATES,
|
update_interval=MIN_TIME_BETWEEN_UPDATES,
|
||||||
)
|
)
|
||||||
@ -111,6 +113,7 @@ class CalendarQueryUpdateCoordinator(DataUpdateCoordinator[list[Event]]):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
config_entry: ConfigEntry,
|
||||||
calendar_service: GoogleCalendarService,
|
calendar_service: GoogleCalendarService,
|
||||||
name: str,
|
name: str,
|
||||||
calendar_id: str,
|
calendar_id: str,
|
||||||
@ -120,6 +123,7 @@ class CalendarQueryUpdateCoordinator(DataUpdateCoordinator[list[Event]]):
|
|||||||
super().__init__(
|
super().__init__(
|
||||||
hass,
|
hass,
|
||||||
_LOGGER,
|
_LOGGER,
|
||||||
|
config_entry=config_entry,
|
||||||
name=name,
|
name=name,
|
||||||
update_interval=MIN_TIME_BETWEEN_UPDATES,
|
update_interval=MIN_TIME_BETWEEN_UPDATES,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user