mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 08:46:35 +00:00
Fix history for energy_storage device class (#26223)
This commit is contained in:
parent
4de4243b55
commit
259e8a14da
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user