mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 04:16:34 +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 = (
|
export const fetchRecentWS = (
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
entityId: string,
|
entityId: string, // This may be CSV
|
||||||
startTime: Date,
|
startTime: Date,
|
||||||
endTime: Date,
|
endTime: Date,
|
||||||
skipInitialState = false,
|
skipInitialState = false,
|
||||||
@ -213,7 +213,7 @@ export const fetchRecentWS = (
|
|||||||
include_start_time_state: !skipInitialState,
|
include_start_time_state: !skipInitialState,
|
||||||
minimal_response: minimalResponse,
|
minimal_response: minimalResponse,
|
||||||
no_attributes: noAttributes || false,
|
no_attributes: noAttributes || false,
|
||||||
entity_ids: [entityId],
|
entity_ids: entityId.split(","),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const fetchDate = (
|
export const fetchDate = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user