mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
Use a listcomp for more history results (#121830)
This commit is contained in:
@@ -738,6 +738,7 @@ 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(
|
state_class(
|
||||||
db_state,
|
db_state,
|
||||||
attr_cache,
|
attr_cache,
|
||||||
@@ -748,6 +749,7 @@ def _sorted_states_to_dict(
|
|||||||
False,
|
False,
|
||||||
)
|
)
|
||||||
for db_state in group
|
for db_state in group
|
||||||
|
]
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user