From 146f12cc1725bde2d7f25df6b842d6a16f4ec02b Mon Sep 17 00:00:00 2001 From: Donavan Becker Date: Wed, 12 Jul 2023 23:40:09 -0500 Subject: [PATCH 1/2] DebugLevel Condition Add Condition so DebugLevel only shows once Debug is set to true --- config.schema.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config.schema.json b/config.schema.json index 7b0dcd4..839df9c 100644 --- a/config.schema.json +++ b/config.schema.json @@ -277,7 +277,10 @@ "debugLevel": { "title": "Debug Level", "description": "An optional list of strings seperated with comma `,`. `api` represents for API and MQTT log, device ID represents for specific device log. If blank, all logs are outputed.", - "type": "string" + "type": "string", + "condition": { + "functionBody": "return (model.options && model.options.debug);" + } } } } From d8ffbc9fa789c8aa9e877a50d522442d4d13c586 Mon Sep 17 00:00:00 2001 From: Donavan Becker Date: Wed, 12 Jul 2023 23:42:35 -0500 Subject: [PATCH 2/2] Update config.schema.json --- config.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.schema.json b/config.schema.json index 839df9c..b7a0b27 100644 --- a/config.schema.json +++ b/config.schema.json @@ -436,7 +436,7 @@ "type": "fieldset", "title": "Advance Settings", "expandable": true, - "expanded": true, + "expanded": false, "notitle": false, "items": [ "options.debug",