mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 15:08:10 +01:00
Allow "--device SERIAL" on cli to flash only via serial (#5351)
This commit is contained in:
parent
72f29b1283
commit
87395d259e
1 changed files with 2 additions and 0 deletions
|
@ -85,6 +85,8 @@ def choose_upload_log_host(
|
|||
options = []
|
||||
for port in get_serial_ports():
|
||||
options.append((f"{port.path} ({port.description})", port.path))
|
||||
if default == "SERIAL":
|
||||
return choose_prompt(options, purpose=purpose)
|
||||
if (show_ota and "ota" in CORE.config) or (show_api and "api" in CORE.config):
|
||||
options.append((f"Over The Air ({CORE.address})", CORE.address))
|
||||
if default == "OTA":
|
||||
|
|
Loading…
Reference in a new issue