Skip to content

Commit

Permalink
fix(color): color wouldn't follow light color with color: auto
Browse files Browse the repository at this point in the history
Fixes #737
  • Loading branch information
RomRider committed Aug 3, 2023
1 parent 5d2e957 commit ec44974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/button-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
}
}
Expand Down

0 comments on commit ec44974

Please sign in to comment.