Skip to content

Commit

Permalink
[http] Fix brightness (openhab#15751)
Browse files Browse the repository at this point in the history
* [http] Fix brightness

---------

Signed-off-by: Timotheos Constambeys <[email protected]>
  • Loading branch information
constambeys authored Oct 15, 2023
1 parent 09c596c commit d2b3f68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public String toString(Command command) {
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);
}
Expand Down

0 comments on commit d2b3f68

Please sign in to comment.