Code cleanup for feels like translation

This commit is contained in:
Ashish Tank
2021-01-10 17:37:10 +01:00
parent 3eda8af671
commit 774b86c7dc
31 changed files with 36 additions and 45 deletions

View File

@@ -52,8 +52,7 @@ Module.register("weather", {
onlyTemp: false,
showPrecipitationAmount: false,
colored: false,
showFeelsLike: true,
feelsLikeWithDegree: false
showFeelsLike: true
},
// Module properties.
@@ -89,8 +88,6 @@ Module.register("weather", {
// Let the weather provider know we are starting.
this.weatherProvider.start();
this.config.feelsLikeWithDegree = this.translate("FEELS").indexOf("{DEGREE}") > -1;
// Add custom filters
this.addFilters();