feat: authoritative plugin fields - fix devLastIP

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2026-01-29 10:48:30 +11:00
parent 2086e78a39
commit 1f5d6f96a4
2 changed files with 11 additions and 2 deletions

View File

@@ -121,6 +121,7 @@ FIELD_SPECS = {
"empty_values": ["", "null", "(unknown)", "(Unknown)"],
"priority": ["ARPSCAN", "NEWDEV", "N/A"],
"default_value": "0.0.0.0",
"allow_update_if_changed": True,
},
# ==========================================================
@@ -304,6 +305,7 @@ def update_devices_data_from_scan(db):
plugin_prefix=source_prefix,
plugin_settings=plugin_settings,
field_value=new_value,
allow_override_if_changed=spec.get("allow_override_if_changed", False)
):
# Build UPDATE dynamically
update_cols = [f"{field} = ?"]