Skip to content

Commit

Permalink
fix: name and icon color respect attribute choice (#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
akloeckner authored Sep 5, 2024
1 parent 47edf81 commit cbfba7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class MiniGraphCard extends LitElement {
if (UPDATE_PROPS.some(prop => changedProps.has(prop))) {
this.color = this.computeColor(
this.tooltip.value !== undefined
? this.tooltip.value : this.entity[0] && this.entity[0].state,
? this.tooltip.value : this.getEntityState(0),
this.tooltip.entity || 0,
);
return true;
Expand Down

0 comments on commit cbfba7a

Please sign in to comment.