Resolve an endpoint by traversing path segments (example: 'PowerSubsystem/PowerSupplies').
(endpoint: Endpoint, path: str)
| 266 | |
| 267 | |
| 268 | def _resolve_path(endpoint: Endpoint, path: str) -> Endpoint: |
| 269 | """Resolve an endpoint by traversing path segments (example: 'PowerSubsystem/PowerSupplies').""" |
| 270 | parts = [p for p in path.split("/") if p] |
| 271 | current = endpoint |
| 272 | for part in parts: |
| 273 | current = current[part] |
| 274 | return current |
| 275 | |
| 276 | |
| 277 | def get_component_data( |
no test coverage detected