Explicitly pass in the config_entry in notion coordinator (#138066)

explicitly pass in the config_entry in coordinator
pull/137224/head
Michael 2025-02-09 16:32:41 +01:00 committed by GitHub
parent af3e38a11b
commit 2bea300a7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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: