mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix august delaying shutdown (#116329)
This commit is contained in:
parent
66e86170b1
commit
006040270c
@ -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