From 4ca7da684ef277af87f06d52b8342989c548f07a Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 13 Oct 2024 00:09:43 +0100 Subject: [PATCH] add a test_analogsensor3 that is disabled --- src/web/WebCustomizationService.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/web/WebCustomizationService.cpp b/src/web/WebCustomizationService.cpp index 40e6a9533..d06fce320 100644 --- a/src/web/WebCustomizationService.cpp +++ b/src/web/WebCustomizationService.cpp @@ -391,6 +391,15 @@ void WebCustomizationService::test() { analog.type = 1; webCustomization.analogCustomizations.push_back(analog); + analog = AnalogCustomization(); + analog.gpio = 38; + analog.name = "test_analogsensor3"; + analog.offset = 0; + analog.factor = 1; + analog.uom = 0; + analog.type = 0; // disabled, not-used + webCustomization.analogCustomizations.push_back(analog); + // EMS entities, mark some as favorites webCustomization.entityCustomizations.clear(); auto emsEntity = EntityCustomization();