Switch coordinator setup to _async_setup (#126810)

This commit is contained in:
Josef Zweck 2024-09-26 13:08:02 +02:00 committed by GitHub
parent d5ad35630f
commit 16e5271cac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -108,7 +108,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: LaMarzoccoConfigEntry) -
bluetooth_client=bluetooth_client,
)
await coordinator.async_setup()
await coordinator.async_config_entry_first_refresh()
entry.runtime_data = coordinator

View File

@ -57,7 +57,7 @@ class LaMarzoccoUpdateCoordinator(DataUpdateCoordinator[None]):
self._last_statistics_data_update: float | None = None
self._local_client = local_client
async def async_setup(self) -> None:
async def _async_setup(self) -> None:
"""Set up the coordinator."""
if self._local_client is not None:
_LOGGER.debug("Init WebSocket in background task")