mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +00:00
Use correct keys for localization. (#1533)
This commit is contained in:
parent
716e505c88
commit
c537a8d389
@ -217,7 +217,7 @@ class HaWeatherCard extends
|
|||||||
}
|
}
|
||||||
|
|
||||||
computeState(state, localize) {
|
computeState(state, localize) {
|
||||||
return localize(`state.weather.${state.replace('-', '_')}`) || state;
|
return localize(`state.weather.${state}`) || state;
|
||||||
}
|
}
|
||||||
|
|
||||||
showWeatherIcon(condition) {
|
showWeatherIcon(condition) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user