mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix tooltip error for climate charts (#17752)
This commit is contained in:
parent
38b275f7f9
commit
f3ed0160af
@ -137,12 +137,16 @@ export class StateHistoryChartLine extends LitElement {
|
|||||||
`${context.dataset.label}: ${formatNumber(
|
`${context.dataset.label}: ${formatNumber(
|
||||||
context.parsed.y,
|
context.parsed.y,
|
||||||
this.hass.locale,
|
this.hass.locale,
|
||||||
getNumberFormatOptions(
|
this.data[context.datasetIndex]?.entity_id
|
||||||
this.hass.states[this.data[context.datasetIndex].entity_id],
|
? getNumberFormatOptions(
|
||||||
this.hass.entities[
|
this.hass.states[
|
||||||
this.data[context.datasetIndex].entity_id
|
this.data[context.datasetIndex].entity_id
|
||||||
]
|
],
|
||||||
)
|
this.hass.entities[
|
||||||
|
this.data[context.datasetIndex].entity_id
|
||||||
|
]
|
||||||
|
)
|
||||||
|
: undefined
|
||||||
)} ${this.unit}`,
|
)} ${this.unit}`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user