mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Switch coordinator setup to _async_setup
(#126810)
This commit is contained in:
parent
d5ad35630f
commit
16e5271cac
@ -108,7 +108,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: LaMarzoccoConfigEntry) -
|
|||||||
bluetooth_client=bluetooth_client,
|
bluetooth_client=bluetooth_client,
|
||||||
)
|
)
|
||||||
|
|
||||||
await coordinator.async_setup()
|
|
||||||
await coordinator.async_config_entry_first_refresh()
|
await coordinator.async_config_entry_first_refresh()
|
||||||
entry.runtime_data = coordinator
|
entry.runtime_data = coordinator
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ class LaMarzoccoUpdateCoordinator(DataUpdateCoordinator[None]):
|
|||||||
self._last_statistics_data_update: float | None = None
|
self._last_statistics_data_update: float | None = None
|
||||||
self._local_client = local_client
|
self._local_client = local_client
|
||||||
|
|
||||||
async def async_setup(self) -> None:
|
async def _async_setup(self) -> None:
|
||||||
"""Set up the coordinator."""
|
"""Set up the coordinator."""
|
||||||
if self._local_client is not None:
|
if self._local_client is not None:
|
||||||
_LOGGER.debug("Init WebSocket in background task")
|
_LOGGER.debug("Init WebSocket in background task")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user