From: Holger Friedrich Date: Sat, 15 Apr 2023 08:25:51 +0000 (+0200) Subject: [knx] Adapt to ColorUtil changes in core (#14808) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=ec3033331499d900cbc86189e0ae1573ca05b41e;p=openhab-addons.git [knx] Adapt to ColorUtil changes in core (#14808) Signed-off-by: Holger Friedrich --- diff --git a/bundles/org.openhab.binding.knx/src/test/java/org/openhab/binding/knx/internal/dpt/DPTTest.java b/bundles/org.openhab.binding.knx/src/test/java/org/openhab/binding/knx/internal/dpt/DPTTest.java index 79b328a9f4..049192499a 100644 --- a/bundles/org.openhab.binding.knx/src/test/java/org/openhab/binding/knx/internal/dpt/DPTTest.java +++ b/bundles/org.openhab.binding.knx/src/test/java/org/openhab/binding/knx/internal/dpt/DPTTest.java @@ -339,9 +339,9 @@ class DPTTest { HSBType hsbType = (HSBType) ValueDecoder.decode("251.600", data, HSBType.class); assertNotNull(hsbType); - assertEquals(207, hsbType.getHue().doubleValue(), 0.1); - assertEquals(23, hsbType.getSaturation().doubleValue(), 0.1); - assertEquals(19, hsbType.getBrightness().doubleValue(), 0.1); + assertEquals(207, hsbType.getHue().doubleValue(), 0.5); + assertEquals(23, hsbType.getSaturation().doubleValue(), 0.5); + assertEquals(19, hsbType.getBrightness().doubleValue(), 0.5); } // This test checks all our overrides for units. It allows to detect unnecessary overrides when we