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