From 88015986addd8ba5f0c8d5d92aa4d74b270249e8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 28 Apr 2024 10:57:08 -0500 Subject: [PATCH] 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 --- homeassistant/components/bond/entity.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/bond/entity.py b/homeassistant/components/bond/entity.py index f547707d5f1..4495e76859d 100644 --- a/homeassistant/components/bond/entity.py +++ b/homeassistant/components/bond/entity.py @@ -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."""