fixes compatibility with esphome cfg vscode (#1911)

This commit is contained in:
Guillermo Ruffino 2021-06-15 05:20:24 -03:00 committed by Jesse Hills
parent 744ca1af7c
commit 429caccefa
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -504,6 +504,7 @@ def parse_args(argv):
"version",
"clean",
"dashboard",
"vscode",
],
)
@ -686,7 +687,7 @@ def run_esphome(argv):
CORE.dashboard = args.dashboard
setup_log(args.verbose, args.quiet)
if args.deprecated_argv_suggestion is not None:
if args.deprecated_argv_suggestion is not None and args.command != "vscode":
_LOGGER.warning(
"Calling ESPHome with the configuration before the command is deprecated "
"and will be removed in the future. "