mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 00:48:19 +01:00
Also scan for symlinks in comports
Fixes https://github.com/esphome/feature-requests/issues/56
This commit is contained in:
parent
ccf3da2a5a
commit
2822fa4a40
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ def get_serial_ports():
|
|||
# from https://github.com/pyserial/pyserial/blob/master/serial/tools/list_ports.py
|
||||
from serial.tools.list_ports import comports
|
||||
result = []
|
||||
for port, desc, info in comports():
|
||||
for port, desc, info in comports(include_links=True):
|
||||
if not port:
|
||||
continue
|
||||
if "VID:PID" in info:
|
||||
|
|
Loading…
Reference in a new issue