From ec449742c547932f2b3320e9e0b256af30b6bb9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Wiedemann?= Date: Thu, 3 Aug 2023 13:22:59 +0000 Subject: [PATCH] fix(color): color wouldn't follow light color with `color: auto` Fixes #737 --- src/button-card.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/button-card.ts b/src/button-card.ts index a2b798f..af1388c 100644 --- a/src/button-card.ts +++ b/src/button-card.ts @@ -604,7 +604,7 @@ class ButtonCard extends LitElement { colorValue = this._config!.color; } if (AUTO_COLORS.includes(colorValue)) { - if (!state || (state && !(computeDomain(state.entity_id) !== 'light'))) { + if (!state || (state && computeDomain(state.entity_id) !== 'light')) { colorValue = ''; } }