mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix to display correct weather attribute unit (#19750)
This commit is contained in:
parent
4e22fea6e2
commit
a3a099126e
@ -53,9 +53,7 @@ export const computeAttributeValueDisplay = (
|
|||||||
|
|
||||||
if (domain === "weather") {
|
if (domain === "weather") {
|
||||||
unit = getWeatherUnit(config, stateObj as WeatherEntity, attribute);
|
unit = getWeatherUnit(config, stateObj as WeatherEntity, attribute);
|
||||||
}
|
} else if (TEMPERATURE_ATTRIBUTES.has(attribute)) {
|
||||||
|
|
||||||
if (TEMPERATURE_ATTRIBUTES.has(attribute)) {
|
|
||||||
unit = config.unit_system.temperature;
|
unit = config.unit_system.temperature;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user