mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 00:18:11 +01:00
Add verbose mode for espota
This commit is contained in:
parent
19dfdb77eb
commit
30b94f06b3
1 changed files with 2 additions and 0 deletions
|
@ -208,6 +208,8 @@ def upload_program(config, args, port):
|
||||||
espota_args = ['espota.py', '--debug', '--progress', '-i', host,
|
espota_args = ['espota.py', '--debug', '--progress', '-i', host,
|
||||||
'-p', str(ota.get_port(config)), '-f', bin_file,
|
'-p', str(ota.get_port(config)), '-f', bin_file,
|
||||||
'-a', ota.get_auth(config), '-P', str(host_port)]
|
'-a', ota.get_auth(config), '-P', str(host_port)]
|
||||||
|
if args.verbose:
|
||||||
|
espota_args.append('-d')
|
||||||
return espota.main(espota_args)
|
return espota.main(espota_args)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue