mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Dump states in event handler for HA_Stop (#33974)
* Dump states in event handler for HA_Stop * Fix type
This commit is contained in:
@@ -361,7 +361,9 @@ class HomeAssistant:
|
||||
self._track_task = False
|
||||
|
||||
@callback
|
||||
def async_run_job(self, target: Callable[..., None], *args: Any) -> None:
|
||||
def async_run_job(
|
||||
self, target: Callable[..., Union[None, Awaitable]], *args: Any
|
||||
) -> None:
|
||||
"""Run a job from within the event loop.
|
||||
|
||||
This method must be run in the event loop.
|
||||
|
||||
Reference in New Issue
Block a user