From 813c9014e509ba33b6d9e21690a9f20cabf8b528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Thu, 20 May 2021 16:18:31 +0200 Subject: [PATCH] Avoid error in map-card --- src/panels/lovelace/cards/hui-map-card.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/lovelace/cards/hui-map-card.ts b/src/panels/lovelace/cards/hui-map-card.ts index 493ee46823..3c27849c9b 100644 --- a/src/panels/lovelace/cards/hui-map-card.ts +++ b/src/panels/lovelace/cards/hui-map-card.ts @@ -297,7 +297,7 @@ class HuiMapCard extends LitElement implements LovelaceCard { private async loadMap(): Promise { [this._leafletMap, this.Leaflet, this._tileLayer] = await setupLeafletMap( this._mapEl, - this._config!.dark_mode ?? this.hass.themes.darkMode + this._config?.dark_mode ?? this.hass.themes.darkMode ); this._drawEntities(); this._leafletMap.invalidateSize();