We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 496a634 commit a19f028Copy full SHA for a19f028
1 file changed
src/panels/lovelace/cards/hui-calendar-card.ts
@@ -128,10 +128,7 @@ export class HuiCalendarCard extends LitElement implements LovelaceCard {
128
);
129
if (this._config?.entities) {
130
this._calendars = this._config.entities.map((entity, idx) => {
131
- const entityColor = entityOptionsMap.get(entity)?.calendar?.color as
132
- | string
133
- | null
134
- | undefined;
+ const entityColor = entityOptionsMap.get(entity)?.calendar?.color;
135
let backgroundColor: string;
136
// Validate and use the color from entity registry if valid
137
if (entityColor && isValidColorString(entityColor)) {
0 commit comments