make new cleanDeviceName configurable, fix debug logging

This commit is contained in:
Ulrich Wisser committed 2024-04-24 18:02:33 +02:00
1 parent 788f23b955
commit 8bb9328201
2 files changed
+48 -5

No files matched your search

+21 -3
View File
@@ -605,6 +605,25 @@
"string": "The icon associated with the device. Check the <a href=\"https://github.com/jokob-sk/NetAlertX/blob/main/docs/ICONS.md\" target=\"_blank\">documentation on icons</a> for more details."
}
]
},
{
"function": "dev_CleanDeviceName",
"type": "integer.checkbox",
"default_value": 0,
"options": [],
"localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
"string": "Use new algorithm to cleanup device names"
}
],
"description": [
{
"language_code": "en_us",
"string": "Check to start using the new code for cleaning device names. Removes all labels starting with underscore and removes network domain and search list."
}
]
}
],
"required": [
@@ -627,10 +646,9 @@
"dev_Archived",
"dev_Network_Node_MAC_ADDR",
"dev_Network_Node_port",
"dev_Icon"
"dev_Icon",
"dev_CleanDeviceName"
],
"additionalProperties": false
}