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

@@ -76,7 +76,7 @@ public class JSONSchemaLightTests extends AbstractComponentTests {
publishMessage("zigbee2mqtt/light/state", "{ \"color\": {\"r\": 10, \"g\": 20, \"b\": 30 } }");
assertState(component, Light.COLOR_CHANNEL_ID, HSBType.fromRGB(10, 20, 30));
publishMessage("zigbee2mqtt/light/state", "{ \"brightness\": 255 }");
assertState(component, Light.COLOR_CHANNEL_ID, new HSBType("210,66,100"));
assertState(component, Light.COLOR_CHANNEL_ID, new HSBType("210,67,100"));
sendCommand(component, Light.COLOR_CHANNEL_ID, HSBType.BLUE);
assertPublished("zigbee2mqtt/light/set/state",