From bc26a6e597c551517884d4da57c69f29914ec868 Mon Sep 17 00:00:00 2001 From: Mitchell <37925797+ping-localhost@users.noreply.github.com> Date: Fri, 14 Aug 2020 00:54:36 +0200 Subject: [PATCH] Reverted strict checks because of odd behaviour --- seventeen-track-card.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seventeen-track-card.js b/seventeen-track-card.js index 6c781fe..e2ca7ea 100644 --- a/seventeen-track-card.js +++ b/seventeen-track-card.js @@ -13,14 +13,14 @@ class SeventeenTrackCard extends HTMLElement { set hass(hass) { const entityId = this.config.entity; const state = hass.states[entityId]; - const packages = state.attributes.packages !== null ? state.attributes.packages : []; + const packages = state.attributes.packages != null ? state.attributes.packages : []; if (!this.content) { const card = document.createElement('ha-card'); const style = document.createElement('style'); this.content = document.createElement('div'); - card.header = this.config.title !== null ? this.config.title : '17Track.net'; + card.header = this.config.title != null ? this.config.title : '17Track.net'; style.textContent = ` table { width: 100%; @@ -62,7 +62,7 @@ class SeventeenTrackCard extends HTMLElement {