Fix return value for DataUpdateCoordinator._async setup (#139181)

Fix return value for coodinator async setup
This commit is contained in:
Martin Hjelmare 2025-02-24 18:09:51 +01:00 committed by GitHub
parent 2bab7436d3
commit 79dbc70470
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -348,8 +348,8 @@ class DataUpdateCoordinator(BaseDataUpdateCoordinatorProtocol, Generic[_DataT]):
only once during the first refresh. only once during the first refresh.
""" """
if self.setup_method is None: if self.setup_method is None:
return None return
return await self.setup_method() await self.setup_method()
async def async_refresh(self) -> None: async def async_refresh(self) -> None:
"""Refresh data and log errors.""" """Refresh data and log errors."""