Handle history api being passed entity ids as CSV (#12787)

This commit is contained in:
J. Nick Koston 2022-05-25 13:05:56 -10:00 committed by GitHub
parent 2c1550b10f
commit b0e6c41238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = (