Skip to content

Commit

Permalink
[BasicUI] Remove reading of frequency parameter of colorpicker element
Browse files Browse the repository at this point in the history
Note that %frequency% does not exist in colorpicker snippet.

Related to openhab/openhab-core#4438

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
  • Loading branch information
lolodomo committed Aug 9, 2024
1 parent 4dc1bda commit 22101f4
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ public EList<Widget> 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);
Expand All @@ -84,7 +81,6 @@ public EList<Widget> 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
Expand Down

0 comments on commit 22101f4

Please sign in to comment.