[http] Fix brightness (#15751)

* [http] Fix brightness

---------

Signed-off-by: Timotheos Constambeys <timo0190@gmail.com>
pull/15761/head
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
1 changed files with 1 additions and 1 deletions

View File

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