From 07b5856190b1442ce72365bb5e299165e9450f1b Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 8 Sep 2022 22:03:35 +0200 Subject: [PATCH] Don't call deprecated history/* statistics API (#13658) --- 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 8337dead32..b314a3eaef 100644 --- a/src/data/history.ts +++ b/src/data/history.ts @@ -457,7 +457,7 @@ export const getStatisticIds = ( statistic_type?: "mean" | "sum" ) => hass.callWS({ - type: "history/list_statistic_ids", + type: "recorder/list_statistic_ids", statistic_type, }); @@ -478,7 +478,7 @@ export const fetchStatistics = ( period: "5minute" | "hour" | "day" | "month" = "hour" ) => hass.callWS({ - type: "history/statistics_during_period", + type: "recorder/statistics_during_period", start_time: startTime.toISOString(), end_time: endTime?.toISOString(), statistic_ids,