Update hui-map-card.ts (#3289)

This commit is contained in:
Bram Kragten 2019-06-20 17:34:34 +02:00 committed by Paulus Schoutsen
parent 93934449c0
commit 15c101109e

View File

@ -182,7 +182,7 @@ class HuiMapCard extends LitElement implements LovelaceCard {
private async loadMap(): Promise<void> {
[this._leafletMap, this.Leaflet] = await setupLeafletMap(
this._mapEl,
this._config !== undefined ? this._config.dark_mode !== false : false
this._config !== undefined ? this._config.dark_mode === true : false
);
this._drawEntities();
this._leafletMap.invalidateSize();