mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Explicitly pass in the config_entry in notion coordinator (#138066)
explicitly pass in the config_entry in coordinator
This commit is contained in:
parent
af3e38a11b
commit
2bea300a7b
@ -117,16 +117,16 @@ class NotionDataUpdateCoordinator(DataUpdateCoordinator[NotionData]):
|
||||
super().__init__(
|
||||
hass,
|
||||
LOGGER,
|
||||
config_entry=entry,
|
||||
name=entry.data[CONF_USERNAME],
|
||||
update_interval=DEFAULT_SCAN_INTERVAL,
|
||||
)
|
||||
|
||||
self._client = client
|
||||
self._entry = entry
|
||||
|
||||
async def _async_update_data(self) -> NotionData:
|
||||
"""Fetch data from Notion."""
|
||||
data = NotionData(hass=self.hass, entry=self._entry)
|
||||
data = NotionData(hass=self.hass, entry=self.config_entry)
|
||||
|
||||
try:
|
||||
async with asyncio.TaskGroup() as tg:
|
||||
|
Loading…
x
Reference in New Issue
Block a user