mirror of
https://github.com/kalkih/mini-graph-card.git
synced 2025-12-20 00:35:56 +01:00
fix: name and icon color respect attribute choice (#1131)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user