We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4764789 commit 04642f7Copy full SHA for 04642f7
src/accessories/characteristics/brightness.ts
@@ -63,9 +63,7 @@ export class BrightnessCharacteristic extends TuyaWebCharacteristic {
63
) {
64
stateValue = Number(data.color.brightness);
65
} else if (data?.brightness && data?.max_brightness) {
66
- stateValue = Math.round(
67
- (Number(data.brightness) / data.max_brightness) * 100
68
- );
+ stateValue = Math.round((Number(data.brightness) / data.max_brightness) * 100);
69
}
70
71
if (stateValue) {
0 commit comments