mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Fix double history graphs for a disabled entity (#25604)
This commit is contained in:
parent
3532cfa974
commit
cba3e4df7f
@ -640,6 +640,12 @@ export const mergeHistoryResults = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const item of ltsResult.line) {
|
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(
|
const key = computeGroupKey(
|
||||||
item.unit,
|
item.unit,
|
||||||
item.device_class,
|
item.device_class,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user