Return history for entities in the order they were requested (#25560)
* Return history for entities in the order they were requested * Fix problems. Add tests * Update __init__.py
This commit is contained in:
1 parent
fcdd66b33b
commit
671cb0d092
2 files changed
+19
No files matched your search
@@ -211,6 +211,9 @@ def states_to_json(
|
||||
axis correctly.
|
||||
"""
|
||||
result = defaultdict(list)
|
||||
if entity_ids is not None:
|
||||
for ent_id in entity_ids:
|
||||
result[ent_id] = []
|
||||
|
||||
# Get the states at the start time
|
||||
timer_start = time.perf_counter()
|
||||
|
||||
Reference in new issue
Block a user