mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
Make sure logs after upload works when using explicit OTA. (#42)
This commit is contained in:
parent
e063f2aaea
commit
a04438e924
1 changed files with 2 additions and 1 deletions
|
@ -222,7 +222,8 @@ def upload_program(config, args, port):
|
|||
|
||||
|
||||
def show_logs(config, args, port, escape=False):
|
||||
if port != 'OTA':
|
||||
serial_port = port.startswith('/') or port.startswith('COM')
|
||||
if port != 'OTA' and serial_port:
|
||||
run_miniterm(config, port, escape=escape)
|
||||
return 0
|
||||
return mqtt.show_logs(config, args.topic, args.username, args.password, args.client_id,
|
||||
|
|
Loading…
Reference in a new issue