[knx] Adapt to ColorUtil changes in core (#14808)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich 2023-04-15 10:25:51 +02:00 committed by GitHub
parent 20f306f485
commit ec30333314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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