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,