mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-02 00:27:49 +01:00
Stabilize map colors (#30354)
This commit is contained in:
@@ -424,8 +424,10 @@ class HuiMapCard extends LitElement implements LovelaceCard {
|
||||
}
|
||||
const computedStyles = getComputedStyle(this);
|
||||
color = getColorByIndex(this._colorIndex, computedStyles);
|
||||
this._colorIndex++;
|
||||
this._colorDict[entityId] = color;
|
||||
if (color) {
|
||||
this._colorIndex++;
|
||||
this._colorDict[entityId] = color;
|
||||
}
|
||||
return color;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user