mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Evohome drops use of async_call_later to avoid lingering task (#122879)
initial commit
This commit is contained in:
parent
9351f300b0
commit
35bfd0b88f
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user