mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 18:24:13 +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 https://github.com/pyserial/pyserial/blob/master/serial/tools/list_ports.py
|
||||||
from serial.tools.list_ports import comports
|
from serial.tools.list_ports import comports
|
||||||
result = []
|
result = []
|
||||||
for port, desc, info in comports():
|
for port, desc, info in comports(include_links=True):
|
||||||
if not port:
|
if not port:
|
||||||
continue
|
continue
|
||||||
if "VID:PID" in info:
|
if "VID:PID" in info:
|
||||||
|
|
Loading…
Reference in a new issue