From 1b6bf90803c3c43dc21c9e63445c0a668d11c99e Mon Sep 17 00:00:00 2001 From: Alex Pinhasov Date: Fri, 12 Feb 2021 22:08:55 +0200 Subject: [PATCH] Run prettier and linter, add #149 issue code --- src/accessories/characteristics/brightness.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/accessories/characteristics/brightness.ts b/src/accessories/characteristics/brightness.ts index 81eb79c..dfbc5cc 100644 --- a/src/accessories/characteristics/brightness.ts +++ b/src/accessories/characteristics/brightness.ts @@ -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) {