From b594618a55e680d8e53486f48d574633b4bb4882 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Wed, 5 Feb 2020 22:17:43 +0200 Subject: [PATCH] fix: Incorrect LED brightness #3 --- src/led-element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/led-element.ts b/src/led-element.ts index d8c4dcf..f437ae0 100644 --- a/src/led-element.ts +++ b/src/led-element.ts @@ -43,7 +43,7 @@ export class LEDElement extends LitElement { render() { const { color, lightColor } = this; const lightColorActual = lightColor || lightColors[color] || '#ff8080'; - const opacity = this.brightness ? 0.3 + this.brightness / 0.7 : 0; + const opacity = this.brightness ? 0.3 + this.brightness * 0.7 : 0; return html`