From 4342bb1cb3a7a264bda7b3cb0502badeb837595e Mon Sep 17 00:00:00 2001 From: J-N-K Date: Wed, 4 Nov 2020 23:32:14 +0100 Subject: [PATCH] [deconz] fix brightness factor (#8956) Signed-off-by: Jan N. Klug --- .../org/openhab/binding/deconz/internal/BindingConstants.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/BindingConstants.java b/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/BindingConstants.java index 4e5f12cbf..a13ea4710 100644 --- a/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/BindingConstants.java +++ b/bundles/org.openhab.binding.deconz/src/main/java/org/openhab/binding/deconz/internal/BindingConstants.java @@ -131,5 +131,5 @@ public class BindingConstants { public static final double HUE_FACTOR = 65535 / 360.0; public static final int BRIGHTNESS_MIN = 0; public static final int BRIGHTNESS_MAX = 254; - public static final double BRIGHTNESS_FACTOR = BRIGHTNESS_MAX / PercentType.HUNDRED.intValue(); + public static final double BRIGHTNESS_FACTOR = BRIGHTNESS_MAX / PercentType.HUNDRED.doubleValue(); }