mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix august delaying shutdown (#116329)
This commit is contained in:
parent
d1e7471094
commit
624eed4b83
@ -47,7 +47,9 @@ class AugustSubscriberMixin:
|
|||||||
@callback
|
@callback
|
||||||
def _async_scheduled_refresh(self, now: datetime) -> None:
|
def _async_scheduled_refresh(self, now: datetime) -> None:
|
||||||
"""Call the refresh method."""
|
"""Call the refresh method."""
|
||||||
self._hass.async_create_task(self._async_refresh(now), eager_start=True)
|
self._hass.async_create_background_task(
|
||||||
|
self._async_refresh(now), name=f"{self} schedule refresh", eager_start=True
|
||||||
|
)
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def _async_cancel_update_interval(self, _: Event | None = None) -> None:
|
def _async_cancel_update_interval(self, _: Event | None = None) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user