From 4bbc0a03ca7af0ff85ea6eb7ce45fa4eaff82fd9 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 25 Mar 2020 13:03:56 -0700 Subject: [PATCH] Activate asyncio debug when HA run in debug mode (#33251) --- homeassistant/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/__main__.py b/homeassistant/__main__.py index d1d59482e6d..a6d4e0c7bc9 100644 --- a/homeassistant/__main__.py +++ b/homeassistant/__main__.py @@ -339,7 +339,7 @@ def main() -> int: if args.pid_file: write_pid(args.pid_file) - exit_code = asyncio.run(setup_and_run_hass(config_dir, args)) + exit_code = asyncio.run(setup_and_run_hass(config_dir, args), debug=args.debug) if exit_code == RESTART_EXIT_CODE and not args.runner: try_to_restart()