Skip to content

Commit

Permalink
Run prettier and linter, add milo526#149 issue code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPinhasov committed Feb 12, 2021
1 parent 58487c3 commit dc89a94
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 dc89a94

Please sign in to comment.