Explicitly pass in the config_entry in notion coordinator (#138066)
explicitly pass in the config_entry in coordinatorpull/137224/head
parent
af3e38a11b
commit
2bea300a7b
|
@ -117,16 +117,16 @@ class NotionDataUpdateCoordinator(DataUpdateCoordinator[NotionData]):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
hass,
|
hass,
|
||||||
LOGGER,
|
LOGGER,
|
||||||
|
config_entry=entry,
|
||||||
name=entry.data[CONF_USERNAME],
|
name=entry.data[CONF_USERNAME],
|
||||||
update_interval=DEFAULT_SCAN_INTERVAL,
|
update_interval=DEFAULT_SCAN_INTERVAL,
|
||||||
)
|
)
|
||||||
|
|
||||||
self._client = client
|
self._client = client
|
||||||
self._entry = entry
|
|
||||||
|
|
||||||
async def _async_update_data(self) -> NotionData:
|
async def _async_update_data(self) -> NotionData:
|
||||||
"""Fetch data from Notion."""
|
"""Fetch data from Notion."""
|
||||||
data = NotionData(hass=self.hass, entry=self._entry)
|
data = NotionData(hass=self.hass, entry=self.config_entry)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
async with asyncio.TaskGroup() as tg:
|
async with asyncio.TaskGroup() as tg:
|
||||||
|
|
Loading…
Reference in New Issue