From 4125f3d87b7a45e216cb7107e3acbc9327512aea Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Sat, 26 Oct 2024 20:36:03 +0200 Subject: [PATCH] ConfigDescriptionParameter: Document step size value 0 to allow any step size (#4425) Refs https://github.com/openhab/openhab-webui/pull/2832. Signed-off-by: Florian Hotze --- .../openhab/core/config/core/ConfigDescriptionParameter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundles/org.openhab.core.config.core/src/main/java/org/openhab/core/config/core/ConfigDescriptionParameter.java b/bundles/org.openhab.core.config.core/src/main/java/org/openhab/core/config/core/ConfigDescriptionParameter.java index 191a9677c..aea9ca011 100644 --- a/bundles/org.openhab.core.config.core/src/main/java/org/openhab/core/config/core/ConfigDescriptionParameter.java +++ b/bundles/org.openhab.core.config.core/src/main/java/org/openhab/core/config/core/ConfigDescriptionParameter.java @@ -265,6 +265,10 @@ public class ConfigDescriptionParameter { } /** + * Returns the value granularity for a numeric value. + *

+ * By setting the step size to 0, any granularity is allowed, i.e. any number of decimals is accepted. + * * @return the value granularity for a numeric value (nullable) */ public BigDecimal getStepSize() {