From 259e8a14dad40563a59deaf6b50717ed831f9138 Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Fri, 18 Jul 2025 21:34:05 +0300 Subject: [PATCH] Fix history for energy_storage device class (#26223) --- src/data/history.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/history.ts b/src/data/history.ts index 553421d404..32a2349963 100644 --- a/src/data/history.ts +++ b/src/data/history.ts @@ -578,7 +578,7 @@ export const computeHistory = ( const unitStates = Object.keys(lineChartDevices).map((key) => { const splitKey = key.split("_"); const unit = splitKey[0]; - const deviceClass = splitKey[1] || undefined; + const deviceClass = splitKey.slice(1).join("_") || undefined; return processLineChartEntities( unit, deviceClass,