[http] Fix brightness ()

* [http] Fix brightness

---------

Signed-off-by: Timotheos Constambeys <timo0190@gmail.com>
This commit is contained in:
Timotheos Constambeys 2023-10-15 12:24:18 +03:00 committed by GitHub
parent 09c596cf7d
commit d2b3f68d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
}