Auto-populate workflow dropdown

This commit is contained in:
Joe Knapper 2026-02-07 19:27:32 +00:00 committed by jaknapper
parent 0177596fb6
commit 3beb8e1147
2 changed files with 55 additions and 0 deletions

View file

@ -208,6 +208,16 @@ class SmartScanThing(lt.Thing):
raise ScanNotRunningError("Cannot get ongoing scan if scan is not running.")
return self._ongoing_scan
@lt.property
def all_workflow_names(self) -> list[str]:
"""Return a list of all available Scan Workflows."""
return list(self._all_workflows.keys())
@lt.property
def workflow_display_names(self) -> dict[str, str]:
"""Return a list of the display names of all available Scan Workflows."""
return {name: wf.display_name for name, wf in self._all_workflows.items()}
_scan_data: Optional[ActiveScanData] = None
@property