From 7e9e0dbdf29e3306ea7cf8448251394618893207 Mon Sep 17 00:00:00 2001 From: vich-667 <46525327+vich-667@users.noreply.github.com> Date: Wed, 17 Aug 2022 10:15:23 +0200 Subject: [PATCH] return rollershutter pos (#13191) Signed-off-by: Tobias Lange --- .../http/internal/converter/RollershutterItemConverter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/converter/RollershutterItemConverter.java b/bundles/org.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/converter/RollershutterItemConverter.java index 978dce27d3ce3..76e038ec1047c 100644 --- a/bundles/org.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/converter/RollershutterItemConverter.java +++ b/bundles/org.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/converter/RollershutterItemConverter.java @@ -91,6 +91,7 @@ public State toState(String string) { if (value.compareTo(PercentType.ZERO.toBigDecimal()) < 0) { return PercentType.ZERO; } + return new PercentType(value); } catch (NumberFormatException e) { // ignore }