Skip to content

Commit

Permalink
Revert "Run prettier"
Browse files Browse the repository at this point in the history
This reverts commit 52c2b14.
  • Loading branch information
AlexPinhasov committed Feb 12, 2021
1 parent 52c2b14 commit 58487c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/accessories/characteristics/brightness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ export class BrightnessCharacteristic extends TuyaWebCharacteristic {
) {
stateValue = Number(data.color.brightness);
} else if (data?.brightness && data?.max_brightness) {
stateValue = Math.round(
(Number(data.brightness) / data.max_brightness) * 100
);
stateValue = Math.round((Number(data.brightness) / data.max_brightness) * 100);
}

if (stateValue) {
Expand Down

0 comments on commit 58487c3

Please sign in to comment.