File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,15 @@ async def _run(self) -> None:
6262
6363 def set_components(self, components: TargetComponents) -> None:
6464 match components:
65- case [int(), *_] as component_ids:
66- print("Dispatch: Setting components to %s", components)
65+ case []:
66+ print("Dispatch: Using all components")
67+ case list() as ids if isinstance(ids[0], int):
68+ component_ids = ids
6769 case [ComponentCategory.BATTERY, *_]:
68- print("Dispatch: Using all battery components")
70+ component_category = ComponentCategory.BATTERY
6971 case unsupported:
7072 print(
71- "Dispatch: Requested an unsupported target component %r, "
73+ "Dispatch: Requested an unsupported selector %r, "
7274 "but only component IDs or category BATTERY are supported.",
7375 unsupported,
7476 )
You can’t perform that action at this time.
0 commit comments