diff --git a/src/panels/lovelace/header-footer/hui-graph-header-footer.ts b/src/panels/lovelace/header-footer/hui-graph-header-footer.ts index 79b2f1b8ca..ec03889ba4 100644 --- a/src/panels/lovelace/header-footer/hui-graph-header-footer.ts +++ b/src/panels/lovelace/header-footer/hui-graph-header-footer.ts @@ -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;