mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 23:18:10 +01:00
Fix some issues with deprecated argv syntax detection (#2127)
This commit is contained in:
parent
06bde559da
commit
1f42d32eb5
2 changed files with 3 additions and 2 deletions
|
@ -408,7 +408,7 @@ def command_update_all(args):
|
||||||
print("-" * twidth)
|
print("-" * twidth)
|
||||||
print()
|
print()
|
||||||
rc = run_external_process(
|
rc = run_external_process(
|
||||||
"esphome", "--dashboard", "run", "--no-logs", "--device", "OTA", f
|
"esphome", "--dashboard", "run", f, "--no-logs", "--device", "OTA"
|
||||||
)
|
)
|
||||||
if rc == 0:
|
if rc == 0:
|
||||||
print_bar("[{}] {}".format(color(Fore.BOLD_GREEN, "SUCCESS"), f))
|
print_bar("[{}] {}".format(color(Fore.BOLD_GREEN, "SUCCESS"), f))
|
||||||
|
@ -505,6 +505,7 @@ def parse_args(argv):
|
||||||
"clean",
|
"clean",
|
||||||
"dashboard",
|
"dashboard",
|
||||||
"vscode",
|
"vscode",
|
||||||
|
"update-all",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -329,7 +329,7 @@ class EsphomeVscodeHandler(EsphomeCommandWebSocket):
|
||||||
|
|
||||||
class EsphomeAceEditorHandler(EsphomeCommandWebSocket):
|
class EsphomeAceEditorHandler(EsphomeCommandWebSocket):
|
||||||
def build_command(self, json_message):
|
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):
|
class EsphomeUpdateAllHandler(EsphomeCommandWebSocket):
|
||||||
|
|
Loading…
Reference in a new issue