From a63e788ced741739832b24ee95e5e641648ceeef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Fri, 5 Feb 2021 21:42:03 +0100 Subject: [PATCH] Change function name --- src/data/history.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/history.ts b/src/data/history.ts index 0f1f3f81a9..0a0f3a1f09 100644 --- a/src/data/history.ts +++ b/src/data/history.ts @@ -201,7 +201,7 @@ const processLineChartEntities = ( }; }; -const isNumberValued = (states: HassEntity[]): boolean => { +const isNumerical = (states: HassEntity[]): boolean => { if (states.every((state) => UNAVAILABLE_STATES.includes(state.state))) { return false; } @@ -249,7 +249,7 @@ export const computeHistory = ( unit = hass.config.unit_system.temperature; } else if (computeStateDomain(stateInfo[0]) === "humidifier") { unit = "%"; - } else if (isNumberValued(stateInfo)) { + } else if (isNumerical(stateInfo)) { unit = " "; }