Skip to content

Commit

Permalink
fix: switch to animated icons by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dx44 committed May 6, 2023
1 parent bcff6d2 commit c24eb67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions dist/meteofrance-weather-card-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export class MeteofranceWeatherCardEditor extends LitElement {
return this._config.alert_forecast !== false;
}

get _static_icons() {
return this._config.static_icons !== false;
get _animated_icons() {
return this._config.animated_icons !== false;
}

// Config value
Expand Down Expand Up @@ -174,9 +174,9 @@ export class MeteofranceWeatherCardEditor extends LitElement {
"forecast"
)}
${this.renderSwitchOption(
"Use static icons",
this._static_icons,
"static_icons"
"Use animated icons",
this._animated_icons,
"animated_icons"
)}
</ul>
<!-- -->
Expand Down
2 changes: 1 addition & 1 deletion dist/meteofrance-weather-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ class MeteofranceWeatherCard extends LitElement {
? this._config.icons
: "/local/community/lovelace-meteofrance-weather-card/icons/"
}${isNight ? weatherIconsNight[condition] : weatherIconsDay[condition]}${
this.isSelected(this._config.static_icons) ? "-static" : ""
this.isSelected(this._config.animated_icons) ? "" : "-static"
}.svg`;
}

Expand Down

0 comments on commit c24eb67

Please sign in to comment.