Adapt to ColorUtil changes in core (#14724)

* [deconz][dmx][mqtt.generic][mqtt.homeassistant][tado][tradfri][webthing] Adapt to core change (ColorUtil)

openhab/openhab-core#3479

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich
2023-04-08 11:42:18 +02:00
committed by GitHub
parent 64723db7aa
commit 3cd9c6c86c
10 changed files with 21 additions and 22 deletions

View File

@@ -36,7 +36,7 @@ public class TradfriColorTest {
HSBType hsbType = color.getHSB();
assertNotNull(hsbType);
assertEquals(312, hsbType.getHue().intValue());
assertEquals(91, hsbType.getSaturation().intValue());
assertEquals(92, hsbType.getSaturation().intValue());
assertEquals(100, hsbType.getBrightness().intValue());
}
@@ -48,7 +48,7 @@ public class TradfriColorTest {
assertEquals(84, (int) color.brightness);
HSBType hsbType = color.getHSB();
assertNotNull(hsbType);
assertEquals(92, hsbType.getHue().intValue());
assertEquals(93, hsbType.getHue().intValue());
assertEquals(65, hsbType.getSaturation().intValue());
assertEquals(34, hsbType.getBrightness().intValue());
}
@@ -61,7 +61,7 @@ public class TradfriColorTest {
assertEquals(1, (int) color.brightness);
HSBType hsbType = color.getHSB();
assertNotNull(hsbType);
assertEquals(92, hsbType.getHue().intValue());
assertEquals(93, hsbType.getHue().intValue());
assertEquals(65, hsbType.getSaturation().intValue());
assertEquals(1, hsbType.getBrightness().intValue());
}
@@ -75,7 +75,7 @@ public class TradfriColorTest {
HSBType hsbType = color.getHSB();
assertNotNull(hsbType);
assertEquals(156, hsbType.getHue().intValue());
assertEquals(76, hsbType.getSaturation().intValue());
assertEquals(77, hsbType.getSaturation().intValue());
assertEquals(72, hsbType.getBrightness().intValue());
}