Skip to content

Commit

Permalink
Don't require sun
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Jul 3, 2020
1 parent 6832b11 commit 0b2f467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/weather-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class WeatherCard extends LitElement {
class="icon bigger"
style="background: none, url('${this.getWeatherIcon(
stateObj.state.toLowerCase(),
this.hass.states["sun.sun"].state
this.hass.states["sun.sun"]
)}') no-repeat; background-size: contain;"
>${stateObj.state}
</span>
Expand Down Expand Up @@ -310,7 +310,7 @@ class WeatherCard extends LitElement {
? this._config.icons
: "https://cdn.jsdelivr.net/gh/bramkragten/weather-card/dist/icons/"
}${
sun && sun == "below_horizon"
sun && sun.state == "below_horizon"
? weatherIconsNight[condition]
: weatherIconsDay[condition]
}.svg`;
Expand Down

0 comments on commit 0b2f467

Please sign in to comment.