]> git.basschouten.com Git - openhab-addons.git/commitdiff
Fix color tests after HSBType changes (#14629)
authorJacob Laursen <jacob-github@vindvejr.dk>
Sat, 18 Mar 2023 12:59:59 +0000 (13:59 +0100)
committerGitHub <noreply@github.com>
Sat, 18 Mar 2023 12:59:59 +0000 (13:59 +0100)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
bundles/org.openhab.binding.hue/src/test/java/org/openhab/binding/hue/internal/handler/HueLightHandlerTest.java

index 5c4f77e430facf5574860a39560ccb81331fe04f..5f47d7c43cf52b06bf0c21b44d901a8e20dc3bec 100644 (file)
@@ -265,13 +265,13 @@ public class HueLightHandlerTest {
 
     @Test
     public void assertXYCommandForColorChannelWhite() {
-        String expectedReply = "{\"xy\" : [ 0.31271592 , 0.32900152 ], \"bri\" : 254, \"transitiontime\" : 4}";
+        String expectedReply = "{\"xy\" : [ 0.3227 , 0.32900003 ], \"bri\" : 254, \"transitiontime\" : 4}";
         assertSendCommandForColor(HSBType.WHITE, new HueLightState().colormode(ColorMode.XY), expectedReply);
     }
 
     @Test
     public void assertXYCommandForColorChannelColorful() {
-        String expectedReply = "{\"xy\" : [ 0.16969365 , 0.12379659 ], \"bri\" : 127, \"transitiontime\" : 4}";
+        String expectedReply = "{\"xy\" : [ 0.14649999 , 0.115600005 ], \"bri\" : 127, \"transitiontime\" : 4}";
         assertSendCommandForColor(new HSBType("220,90,50"), new HueLightState().colormode(ColorMode.XY), expectedReply);
     }