diff --git a/bom-weather-card.js b/bom-weather-card.js index f8e3539..5fe2b42 100644 --- a/bom-weather-card.js +++ b/bom-weather-card.js @@ -22,7 +22,8 @@ class BOMWeatherCard extends LitElement { var summary = this.config.entity_daily_summary ? html`${this._hass.states[this.config.entity_daily_summary].state}` : ``; var separator = this.config.show_separator ? html`
` : ``; - +// Cast Compatibility + var fullurl = window.location.origin // Build HTML return html` @@ -30,7 +31,7 @@ class BOMWeatherCard extends LitElement { ${this.style()} - ${this.current.conditions} + ${this.current.conditions} ${this.current.temperature}${this.getUOM('temperature')} ${currentText} ${apparentTemp} @@ -55,7 +56,7 @@ class BOMWeatherCard extends LitElement { ${this.forecast.map(daily => html`
${(daily.date).toLocaleDateString(this.config.locale,{weekday: 'short'})} -
+
${this.config.old_daily_format ? html`
${Math.round(this._hass.states[daily.temphigh].state)}${this.getUOM("temperature")}
${Math.round(this._hass.states[daily.templow].state)}${this.getUOM("temperature")}` : html`
${Math.round(this._hass.states[daily.templow].state)} / ${Math.round(this._hass.states[daily.temphigh].state)}${this.getUOM("temperature")}`} diff --git a/info.md b/info.md index 38efd94..433daa9 100644 --- a/info.md +++ b/info.md @@ -2,7 +2,7 @@ ## Changes -Added support for new Home Assistant Cast +Added support for new Home Assistant Cast - fixed icons not displaying Merged some French and Russian Language PR's from original repo. ## Older Changes: