From a3a099126e7a6bd5b7bc067dbf3676b820972d55 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Wed, 14 Feb 2024 04:03:04 -0500 Subject: [PATCH] Fix to display correct weather attribute unit (#19750) --- src/common/entity/compute_attribute_display.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/entity/compute_attribute_display.ts b/src/common/entity/compute_attribute_display.ts index 77bc61bbd4..5e66ae757f 100644 --- a/src/common/entity/compute_attribute_display.ts +++ b/src/common/entity/compute_attribute_display.ts @@ -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; }