[http] Fix brightness (#15751)
* [http] Fix brightness --------- Signed-off-by: Timotheos Constambeys <timo0190@gmail.com>pull/15761/head
parent
09c596cf7d
commit
d2b3f68d2e
|
@ -64,7 +64,7 @@ public class ColorItemConverter extends AbstractTransformingItemConverter {
|
|||
state = newState;
|
||||
return hsbToString(newState);
|
||||
} else if (command instanceof PercentType percentCommand && state instanceof HSBType hsb) {
|
||||
HSBType newState = new HSBType(hsb.getBrightness(), hsb.getSaturation(), percentCommand);
|
||||
HSBType newState = new HSBType(hsb.getHue(), hsb.getSaturation(), percentCommand);
|
||||
state = newState;
|
||||
return hsbToString(newState);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue