mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Fix color tests after HSBType changes (#14629)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
0f5dfa5088
commit
23f3374ea9
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user