From a04438e92434fcc472ebfce5a1d923630ec012c6 Mon Sep 17 00:00:00 2001 From: Johan Bloemberg Date: Fri, 8 Jun 2018 10:41:01 +0200 Subject: [PATCH] Make sure logs after upload works when using explicit OTA. (#42) --- esphomeyaml/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphomeyaml/__main__.py b/esphomeyaml/__main__.py index 2ee23402f2..6c288b291c 100644 --- a/esphomeyaml/__main__.py +++ b/esphomeyaml/__main__.py @@ -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,