Make more sane search

This commit is contained in:
Joey Yakimowich-Payne 2025-11-25 17:57:14 -07:00
commit 80528ff39e
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1

View file

@ -112,10 +112,6 @@ def is_usb_serial(path: str) -> bool:
)
if lower.startswith(usb_prefixes):
return True
if "usb" in lower:
return True
if lower.startswith(("/dev/tty", "/dev/cu", "com")):
return False
# Default to False for unknown paths; caller can include_non_usb to override.
return False