From 22101f44d2d7a1263cac3ce5e27d6776a0c27ddb Mon Sep 17 00:00:00 2001 From: Laurent Garnier Date: Fri, 9 Aug 2024 18:03:26 +0200 Subject: [PATCH] [BasicUI] Remove reading of frequency parameter of colorpicker element Note that %frequency% does not exist in colorpicker snippet. Related to openhab/openhab-core#4438 Signed-off-by: Laurent Garnier --- .../openhab/ui/basic/internal/render/ColorpickerRenderer.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bundles/org.openhab.ui.basic/src/main/java/org/openhab/ui/basic/internal/render/ColorpickerRenderer.java b/bundles/org.openhab.ui.basic/src/main/java/org/openhab/ui/basic/internal/render/ColorpickerRenderer.java index ed5731b022..87d4a28145 100644 --- a/bundles/org.openhab.ui.basic/src/main/java/org/openhab/ui/basic/internal/render/ColorpickerRenderer.java +++ b/bundles/org.openhab.ui.basic/src/main/java/org/openhab/ui/basic/internal/render/ColorpickerRenderer.java @@ -62,9 +62,6 @@ public EList renderWidget(Widget w, StringBuilder sb, String sitemap) th String snippet = getSnippet("colorpicker"); - // set the default send-update frequency to 200ms - String frequency = cp.getFrequency() == 0 ? "200" : Integer.toString(cp.getFrequency()); - // get RGB hex value State state = itemUIRegistry.getState(cp); String hexValue = getRGBHexCodeFromItemState(state); @@ -84,7 +81,6 @@ public EList renderWidget(Widget w, StringBuilder sb, String sitemap) th if (purelabel != null) { snippet = snippet.replace("%purelabel%", purelabel); } - snippet = snippet.replace("%frequency%", frequency); snippet = snippet.replace("%servletname%", WebAppServlet.SERVLET_PATH); // Process the color tags