mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-12 11:56:34 +00:00
Update hui-graph-header-footer.ts (#10476)
This commit is contained in:
parent
251416b51d
commit
60ce805b3b
@ -193,21 +193,13 @@ export class HuiGraphHeaderFooter
|
||||
this._stateHistory!.push(...stateHistory[0]);
|
||||
}
|
||||
|
||||
const limits =
|
||||
this._config!.limits === undefined &&
|
||||
this._stateHistory?.some(
|
||||
(entity) => entity.attributes?.unit_of_measurement === "%"
|
||||
)
|
||||
? { min: 0, max: 100 }
|
||||
: this._config!.limits;
|
||||
|
||||
this._coordinates =
|
||||
coordinates(
|
||||
this._stateHistory,
|
||||
this._config!.hours_to_show!,
|
||||
500,
|
||||
this._config!.detail!,
|
||||
limits
|
||||
this._config!.limits
|
||||
) || [];
|
||||
|
||||
this._date = endTime;
|
||||
|
Loading…
x
Reference in New Issue
Block a user