Skip to content

Commit

Permalink
Run prettier and linter, add #149 issue code
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Pinhasov authored and milo526 committed Mar 25, 2021
1 parent 04642f7 commit 1b6bf90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/accessories/characteristics/brightness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ 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 1b6bf90

Please sign in to comment.