From 35bfd0b88fe3c17b5810dd96fb3f50b6237df869 Mon Sep 17 00:00:00 2001 From: David Bonnes Date: Wed, 31 Jul 2024 08:35:21 +0100 Subject: [PATCH] Evohome drops use of async_call_later to avoid lingering task (#122879) initial commit --- homeassistant/components/evohome/coordinator.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/evohome/coordinator.py b/homeassistant/components/evohome/coordinator.py index b83d2d20c6a..943bd6605b4 100644 --- a/homeassistant/components/evohome/coordinator.py +++ b/homeassistant/components/evohome/coordinator.py @@ -19,7 +19,6 @@ from evohomeasync2.schema.const import ( ) from homeassistant.helpers.dispatcher import async_dispatcher_send -from homeassistant.helpers.event import async_call_later from .const import CONF_LOCATION_IDX, DOMAIN, GWS, TCS, UTC_OFFSET from .helpers import handle_evo_exception @@ -107,7 +106,7 @@ class EvoBroker: return None if update_state: # wait a moment for system to quiesce before updating state - async_call_later(self.hass, 1, self._update_v2_api_state) + await self.hass.data[DOMAIN]["coordinator"].async_request_refresh() return result