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:
J. Nick Koston 2024-04-28 10:57:08 -05:00 committed by GitHub
parent ddf58b6905
commit 62ab67376f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,7 +128,9 @@ class BondEntity(Entity):
_FALLBACK_SCAN_INTERVAL,
)
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:
"""Fetch via the API."""