mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Fix bond update delaying shutdown when push updated are not available (#116344)
If push updates are not available, bond could delay shutdown. The update task should have been marked as a background task
This commit is contained in:
parent
ddf58b6905
commit
62ab67376f
@ -128,7 +128,9 @@ class BondEntity(Entity):
|
|||||||
_FALLBACK_SCAN_INTERVAL,
|
_FALLBACK_SCAN_INTERVAL,
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
self.hass.async_create_task(self._async_update(), eager_start=True)
|
self.hass.async_create_background_task(
|
||||||
|
self._async_update(), f"{DOMAIN} {self.name} update", eager_start=True
|
||||||
|
)
|
||||||
|
|
||||||
async def _async_update(self) -> None:
|
async def _async_update(self) -> None:
|
||||||
"""Fetch via the API."""
|
"""Fetch via the API."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user