]> git.basschouten.com Git - openhab-addons.git/commitdiff
Additional check for convert to double (#10224)
authorPiwoxar <hdloew@googlemail.com>
Sun, 28 Feb 2021 20:27:53 +0000 (21:27 +0100)
committerGitHub <noreply@github.com>
Sun, 28 Feb 2021 20:27:53 +0000 (21:27 +0100)
Signed-off-by: Hans-Dietert Loew <hdloew@googlemail.com>
bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/parser/CcuVariablesAndScriptsParser.java

index 17ff956ede68f6afa9a15aa645c694594f0a63a6..27d5dc559494dcd37579ba064eb0b6ec30618c89 100644 (file)
@@ -50,7 +50,7 @@ public class CcuVariablesAndScriptsParser extends CommonRpcParser<TclScriptDataL
                     if (dp.isIntegerType()) {
                         dp.setMinValue(toInteger(entry.minValue));
                         dp.setMaxValue(toInteger(entry.maxValue));
-                    } else {
+                    } else if (dp.isFloatType()) {
                         dp.setMinValue(toDouble(entry.minValue));
                         dp.setMaxValue(toDouble(entry.maxValue));
                     }