Use correct keys for localization. (#1533)

This commit is contained in:
Paulus Schoutsen 2018-08-02 13:17:41 +01:00 committed by GitHub
parent 716e505c88
commit c537a8d389
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,7 +217,7 @@ class HaWeatherCard extends
}
computeState(state, localize) {
return localize(`state.weather.${state.replace('-', '_')}`) || state;
return localize(`state.weather.${state}`) || state;
}
showWeatherIcon(condition) {