mirror of
https://github.com/esphome/esphome.git
synced 2025-01-19 12:24:05 +00: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
@ -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…
x
Reference in New Issue
Block a user