Fix some issues with deprecated argv syntax detection (#2127)

This commit is contained in:
Otto Winter 2021-08-10 03:27:21 +02:00 committed by GitHub
parent 06bde559da
commit 1f42d32eb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -408,7 +408,7 @@ def command_update_all(args):
print("-" * twidth)
print()
rc = run_external_process(
"esphome", "--dashboard", "run", "--no-logs", "--device", "OTA", f
"esphome", "--dashboard", "run", f, "--no-logs", "--device", "OTA"
)
if rc == 0:
print_bar("[{}] {}".format(color(Fore.BOLD_GREEN, "SUCCESS"), f))
@ -505,6 +505,7 @@ def parse_args(argv):
"clean",
"dashboard",
"vscode",
"update-all",
],
)

View file

@ -329,7 +329,7 @@ class EsphomeVscodeHandler(EsphomeCommandWebSocket):
class EsphomeAceEditorHandler(EsphomeCommandWebSocket):
def build_command(self, json_message):
return ["esphome", "--dashboard", "-q", "vscode", settings.config_dir, "--ace"]
return ["esphome", "--dashboard", "-q", "vscode", "--ace", settings.config_dir]
class EsphomeUpdateAllHandler(EsphomeCommandWebSocket):