]> git.basschouten.com Git - openhab-addons.git/commitdiff
return rollershutter pos (#13191)
authorvich-667 <46525327+vich-667@users.noreply.github.com>
Wed, 17 Aug 2022 08:15:23 +0000 (10:15 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Aug 2022 08:15:23 +0000 (10:15 +0200)
Signed-off-by: Tobias Lange <vich-667@gmx.de>
bundles/org.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/converter/RollershutterItemConverter.java

index 978dce27d3ce39132d1f3b31ab47de5fc279e703..76e038ec1047c9616395e45069b2ce81b618ca5f 100644 (file)
@@ -91,6 +91,7 @@ public class RollershutterItemConverter extends AbstractTransformingItemConverte
             if (value.compareTo(PercentType.ZERO.toBigDecimal()) < 0) {
                 return PercentType.ZERO;
             }
+            return new PercentType(value);
         } catch (NumberFormatException e) {
             // ignore
         }