mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Switch coordinator setup to _async_setup
(#126810)
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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")
|
||||
|
Reference in New Issue
Block a user