From 179cf6696a4392026845f2601ee324c26d3f0edf Mon Sep 17 00:00:00 2001 From: Mark Herwege Date: Sun, 2 Jul 2023 13:22:02 +0200 Subject: [PATCH] review feedback Signed-off-by: Mark Herwege --- .../org/openhab/ui/basic/internal/render/InputRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.ui.basic/src/main/java/org/openhab/ui/basic/internal/render/InputRenderer.java b/bundles/org.openhab.ui.basic/src/main/java/org/openhab/ui/basic/internal/render/InputRenderer.java index cf264ea085..01d842dd17 100644 --- a/bundles/org.openhab.ui.basic/src/main/java/org/openhab/ui/basic/internal/render/InputRenderer.java +++ b/bundles/org.openhab.ui.basic/src/main/java/org/openhab/ui/basic/internal/render/InputRenderer.java @@ -110,7 +110,7 @@ public EList renderWidget(Widget w, StringBuilder sb, String sitemap) th item.getType()); inputHint = null; } - if ("datetime".equals(dataType) && ((inputHint == null) || "".equals(inputHint) || "text".equals(inputHint))) { + if ("datetime".equals(dataType) && ((inputHint == null) || inputHint.isEmpty() || "text".equals(inputHint))) { inputHint = "datetime"; } snippet = snippet.replace("%input_hint%", inputHint == null ? "" : inputHint);