File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
bundles/org.openhab.binding.govee/src/main/java/org/openhab/binding/govee/internal Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -263,10 +263,10 @@ private void sendKelvin(int kelvin) throws IOException {
263
263
* @return the HSB presentation state
264
264
*/
265
265
private static HSBType buildHSB (Color normalColor , int brightness , boolean on ) {
266
- int [] normalizedRGB = { normalColor .r (), normalColor .g (), normalColor .b () };
267
- HSBType normalizedHSB = ColorUtil .rgbToHsb (normalizedRGB );
268
- PercentType brightnessParam = on ? new PercentType (brightness ) : PercentType .ZERO ;
269
- return new HSBType (normalizedHSB .getHue (), normalizedHSB .getSaturation (), brightnessParam );
266
+ int [] normalRGB = { normalColor .r (), normalColor .g (), normalColor .b () };
267
+ HSBType normalHSB = ColorUtil .rgbToHsb (normalRGB );
268
+ PercentType brightnessPercent = on ? new PercentType (brightness ) : PercentType .ZERO ;
269
+ return new HSBType (normalHSB .getHue (), normalHSB .getSaturation (), brightnessPercent );
270
270
}
271
271
272
272
void handleIncomingStatus (String response ) {
You can’t perform that action at this time.
0 commit comments