mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-12 20:06:33 +00:00
Handle history api being passed entity ids as CSV (#12787)
This commit is contained in:
parent
2c1550b10f
commit
b0e6c41238
@ -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 = (
|
||||
|
Loading…
x
Reference in New Issue
Block a user