Activate asyncio debug when HA run in debug mode (#33251)

This commit is contained in:
Paulus Schoutsen 2020-03-25 13:03:56 -07:00 committed by GitHub
parent 16670a38a4
commit 4bbc0a03ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()