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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user