Fix to display correct weather attribute unit (#19750)

This commit is contained in:
karwosts 2024-02-14 04:03:04 -05:00 committed by GitHub
parent 4e22fea6e2
commit a3a099126e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,9 +53,7 @@ export const computeAttributeValueDisplay = (
if (domain === "weather") {
unit = getWeatherUnit(config, stateObj as WeatherEntity, attribute);
}
if (TEMPERATURE_ATTRIBUTES.has(attribute)) {
} else if (TEMPERATURE_ATTRIBUTES.has(attribute)) {
unit = config.unit_system.temperature;
}