From b0e6c41238e3985fade9cdf8dee06629c3771041 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 25 May 2022 13:05:56 -1000 Subject: [PATCH] Handle history api being passed entity ids as CSV (#12787) --- 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 81f5276149..451ab126c7 100644 --- a/src/data/history.ts +++ b/src/data/history.ts @@ -197,7 +197,7 @@ export const fetchRecent = ( export const fetchRecentWS = ( hass: HomeAssistant, - entityId: string, + entityId: string, // This may be CSV startTime: Date, endTime: Date, skipInitialState = false, @@ -213,7 +213,7 @@ export const fetchRecentWS = ( include_start_time_state: !skipInitialState, minimal_response: minimalResponse, no_attributes: noAttributes || false, - entity_ids: [entityId], + entity_ids: entityId.split(","), }); export const fetchDate = (