From 60ce805b3b37d9fc9daf7a3be46a149a6d5fb22c Mon Sep 17 00:00:00 2001 From: Carlos Garcia Saura Date: Thu, 2 Dec 2021 22:32:38 +0100 Subject: [PATCH] Update hui-graph-header-footer.ts (#10476) --- .../lovelace/header-footer/hui-graph-header-footer.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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;