refactor(warnings): report raw signal only, no severity/presentation

get_device_warnings() now returns only {code, meta} — severity, title,
message, and action are resolved centrally by netork's
WARNING_CATALOG (netork/core/device_warnings.py), not by the driver.
Keeps this driver independent of netork and avoids per-vendor drift in
how the same warning code is presented.
This commit is contained in:
Christian Manivong
2026-07-20 09:54:07 +02:00
parent 7e8624a3dd
commit 5a9c360587
-2
View File
@@ -104,8 +104,6 @@ class OpenMediaVaultDriver(LinuxDriver):
if updates: if updates:
warnings.append({ warnings.append({
"code": "updates_available", "code": "updates_available",
"severity": "warning",
"action": None,
"meta": { "meta": {
"count": upgradable_count, "count": upgradable_count,
"packages": [u.get("name", "") for u in updates[:10]], "packages": [u.get("name", "") for u in updates[:10]],