mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 11:47:30 +01:00
Make sure logs after upload works when using explicit OTA. (#42)
This commit is contained in:
parent
e063f2aaea
commit
a04438e924
@ -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 New Issue
Block a user