fixes and improvements

This commit is contained in:
2026-05-11 17:00:46 +02:00
parent 67a619e148
commit 80d38ed86d
6 changed files with 40 additions and 25 deletions
@@ -53,8 +53,8 @@ def _resolve_machine(store: SettingsStore, machine_id: str | None) -> dict[str,
@router.get("/machines")
def get_machines(store: SettingsStore = Depends(get_settings_store)) -> list[dict[str, Any]]:
"""Return monitoring machines for the UI."""
return store.list_machines()
"""Return enabled monitoring machines for the UI."""
return [m for m in store.list_machines() if m.get("enabled")]
@router.get("/poller")