]> git.basschouten.com Git - openhab-addons.git/commitdiff
[knx] Adapt to ColorUtil changes in core (#14808)
authorHolger Friedrich <holgerfriedrich@users.noreply.github.com>
Sat, 15 Apr 2023 08:25:51 +0000 (10:25 +0200)
committerGitHub <noreply@github.com>
Sat, 15 Apr 2023 08:25:51 +0000 (10:25 +0200)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
bundles/org.openhab.binding.knx/src/test/java/org/openhab/binding/knx/internal/dpt/DPTTest.java

index 79b328a9f4128a0c88b4dff6aa3df7276584a8bf..049192499a08adeb406ba9d91d200dc7985be870 100644 (file)
@@ -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