mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Fix return value for DataUpdateCoordinator._async setup (#139181)
Fix return value for coodinator async setup
This commit is contained in:
parent
2bab7436d3
commit
79dbc70470
@ -348,8 +348,8 @@ class DataUpdateCoordinator(BaseDataUpdateCoordinatorProtocol, Generic[_DataT]):
|
||||
only once during the first refresh.
|
||||
"""
|
||||
if self.setup_method is None:
|
||||
return None
|
||||
return await self.setup_method()
|
||||
return
|
||||
await self.setup_method()
|
||||
|
||||
async def async_refresh(self) -> None:
|
||||
"""Refresh data and log errors."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user