MCPcopy Create free account
hub / github.com/FastLED/FastLED / ComportResult

Class ComportResult

ci/util/port_utils.py:53–66  ·  view source on GitHub ↗

Result of COM port detection with detailed diagnostics. Attributes: ok: True if a suitable USB port was found, False otherwise selected_port: The selected USB port device name (e.g., 'COM3'), or None if not found error_message: Optional error description if detection fai

Source from the content-addressed store, hash-verified

51
52@dataclass
53class ComportResult:
54 """Result of COM port detection with detailed diagnostics.
55
56 Attributes:
57 ok: True if a suitable USB port was found, False otherwise
58 selected_port: The selected USB port device name (e.g., 'COM3'), or None if not found
59 error_message: Optional error description if detection failed
60 all_ports: List of all ports scanned (for diagnostics), empty list by default
61 """
62
63 ok: bool
64 selected_port: str | None
65 error_message: str | None = None
66 all_ports: list[ListPortInfo] = field(default_factory=lambda: [])
67
68
69def auto_detect_upload_port(expected_environment: str | None) -> ComportResult:

Callers 1

auto_detect_upload_portFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected