mirror of
https://github.com/esphome/esphome.git
synced 2025-01-19 04:20:56 +00: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):
|
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)
|
run_miniterm(config, port, escape=escape)
|
||||||
return 0
|
return 0
|
||||||
return mqtt.show_logs(config, args.topic, args.username, args.password, args.client_id,
|
return mqtt.show_logs(config, args.topic, args.username, args.password, args.client_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user