From ce6983152e63c8e5d6d0649742e96a5e4434fb77 Mon Sep 17 00:00:00 2001 From: Onne Gorter Date: Fri, 19 Jul 2024 23:17:11 +0200 Subject: [PATCH] update according to linter --- src/panels/lovelace/common/graph/coordinates.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/panels/lovelace/common/graph/coordinates.ts b/src/panels/lovelace/common/graph/coordinates.ts index d075835410cf..240e805a6ed0 100644 --- a/src/panels/lovelace/common/graph/coordinates.ts +++ b/src/panels/lovelace/common/graph/coordinates.ts @@ -28,9 +28,7 @@ const calcPoints = ( } let last = [average(first), lastValue(first)]; - const getY = (value: number): number => { - return height + strokeWidth / 2 - (value - min) / yRatio; - }; + const getY = (value: number): number => height + strokeWidth / 2 - (value - min) / yRatio; const getCoords = (item: any[], i: number, offset = 0, depth = 1) => { if (depth > 1 && item) {