1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 20:55:49 +00:00

Fix double history graphs for a disabled entity (#25604)

This commit is contained in:
Petar Petrov
2025-05-27 10:08:58 +03:00
committed by Bram Kragten
parent 1611423ca5
commit 9131bf6dfd

View File

@@ -640,6 +640,12 @@ export const mergeHistoryResults = (
}
for (const item of ltsResult.line) {
if (item.unit === BLANK_UNIT) {
// disabled entities have no unit, so we need to find the unit from the history result
item.unit =
historyResult.line.find((line) => line.identifier === item.identifier)
?.unit ?? BLANK_UNIT;
}
const key = computeGroupKey(
item.unit,
item.device_class,