mirror of
https://github.com/home-assistant/core.git
synced 2025-08-17 19:41:45 +02:00
restore lost performance
This commit is contained in:
@@ -265,9 +265,9 @@ def get_significant_states_with_session(
|
|||||||
track_on=[
|
track_on=[
|
||||||
bool(single_metadata_id),
|
bool(single_metadata_id),
|
||||||
bool(end_time_ts),
|
bool(end_time_ts),
|
||||||
bool(significant_changes_only),
|
significant_changes_only,
|
||||||
bool(no_attributes),
|
no_attributes,
|
||||||
bool(include_start_time_state),
|
include_start_time_state,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
states = execute_stmt_lambda_element(session, stmt, None, end_time)
|
states = execute_stmt_lambda_element(session, stmt, None, end_time)
|
||||||
@@ -416,7 +416,7 @@ def state_changes_during_period(
|
|||||||
no_attributes,
|
no_attributes,
|
||||||
descending,
|
descending,
|
||||||
bool(limit),
|
bool(limit),
|
||||||
bool(include_start_time_state),
|
include_start_time_state,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
states = execute_stmt_lambda_element(session, stmt, None, end_time)
|
states = execute_stmt_lambda_element(session, stmt, None, end_time)
|
||||||
|
Reference in New Issue
Block a user