mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Use a listcomp for more history results (#121830)
This commit is contained in:
parent
156e92a4cd
commit
8a52ffb967
@ -738,16 +738,18 @@ def _sorted_states_to_dict(
|
|||||||
or split_entity_id(entity_id)[0] in NEED_ATTRIBUTE_DOMAINS
|
or split_entity_id(entity_id)[0] in NEED_ATTRIBUTE_DOMAINS
|
||||||
):
|
):
|
||||||
ent_results.extend(
|
ent_results.extend(
|
||||||
state_class(
|
[
|
||||||
db_state,
|
state_class(
|
||||||
attr_cache,
|
db_state,
|
||||||
start_time_ts,
|
attr_cache,
|
||||||
entity_id,
|
start_time_ts,
|
||||||
db_state[state_idx],
|
entity_id,
|
||||||
db_state[last_updated_ts_idx],
|
db_state[state_idx],
|
||||||
False,
|
db_state[last_updated_ts_idx],
|
||||||
)
|
False,
|
||||||
for db_state in group
|
)
|
||||||
|
for db_state in group
|
||||||
|
]
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user