Dump states in event handler for HA_Stop (#33974)

* Dump states in event handler for HA_Stop

* Fix type
This commit is contained in:
Paulus Schoutsen
2020-04-13 17:41:01 -07:00
committed by GitHub
parent 89fe488b7c
commit 5a9970e63c
4 changed files with 11 additions and 10 deletions

View File

@@ -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.