Skip to content

Commit a19f028

Browse files
committed
remove casting
1 parent 496a634 commit a19f028

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/panels/lovelace/cards/hui-calendar-card.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,7 @@ export class HuiCalendarCard extends LitElement implements LovelaceCard {
128128
);
129129
if (this._config?.entities) {
130130
this._calendars = this._config.entities.map((entity, idx) => {
131-
const entityColor = entityOptionsMap.get(entity)?.calendar?.color as
132-
| string
133-
| null
134-
| undefined;
131+
const entityColor = entityOptionsMap.get(entity)?.calendar?.color;
135132
let backgroundColor: string;
136133
// Validate and use the color from entity registry if valid
137134
if (entityColor && isValidColorString(entityColor)) {

0 commit comments

Comments
 (0)