From f4ae8422f246aa2d44dfab2d3638613fa8ae240a Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Fri, 7 Nov 2025 14:49:36 +0000 Subject: [PATCH] fix: Update trend percentage attribute key format in TibberPricesSensor --- custom_components/tibber_prices/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/tibber_prices/sensor.py b/custom_components/tibber_prices/sensor.py index 2be2090..b60b877 100644 --- a/custom_components/tibber_prices/sensor.py +++ b/custom_components/tibber_prices/sensor.py @@ -1200,7 +1200,7 @@ class TibberPricesSensor(TibberPricesEntity, SensorEntity): # Core attributes self._attr_extra_state_attributes["timestamp"] = next_interval_start.isoformat() - self._attr_extra_state_attributes[f"trend_{hours}h_percentage"] = round(diff_pct, 1) + self._attr_extra_state_attributes[f"trend_{hours}h_%"] = round(diff_pct, 1) self._attr_extra_state_attributes[f"future_avg_{hours}h"] = round(future_avg * 100, 2) self._attr_extra_state_attributes["intervals_analyzed"] = hours * 4