mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Explicitly pass in the config_entry in seventeentrack coordinator (#137956)
explicitly pass in the config_entry in coordinator
This commit is contained in:
parent
b512838d1e
commit
a59d829e6a
@ -39,7 +39,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
except SeventeenTrackError as err:
|
except SeventeenTrackError as err:
|
||||||
raise ConfigEntryNotReady from err
|
raise ConfigEntryNotReady from err
|
||||||
|
|
||||||
seventeen_coordinator = SeventeenTrackCoordinator(hass, client)
|
seventeen_coordinator = SeventeenTrackCoordinator(hass, entry, client)
|
||||||
|
|
||||||
await seventeen_coordinator.async_config_entry_first_refresh()
|
await seventeen_coordinator.async_config_entry_first_refresh()
|
||||||
|
|
||||||
|
@ -34,11 +34,17 @@ class SeventeenTrackCoordinator(DataUpdateCoordinator[SeventeenTrackData]):
|
|||||||
|
|
||||||
config_entry: ConfigEntry
|
config_entry: ConfigEntry
|
||||||
|
|
||||||
def __init__(self, hass: HomeAssistant, client: SeventeenTrackClient) -> None:
|
def __init__(
|
||||||
|
self,
|
||||||
|
hass: HomeAssistant,
|
||||||
|
config_entry: ConfigEntry,
|
||||||
|
client: SeventeenTrackClient,
|
||||||
|
) -> None:
|
||||||
"""Initialize."""
|
"""Initialize."""
|
||||||
super().__init__(
|
super().__init__(
|
||||||
hass,
|
hass,
|
||||||
LOGGER,
|
LOGGER,
|
||||||
|
config_entry=config_entry,
|
||||||
name=DOMAIN,
|
name=DOMAIN,
|
||||||
update_interval=DEFAULT_SCAN_INTERVAL,
|
update_interval=DEFAULT_SCAN_INTERVAL,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user