Home Assistant Unofficial Reference 2024.12.1
legacy.py File Reference

Go to the source code of this file.

Namespaces

 homeassistant.components.recorder.history.legacy
 

Functions

StatementLambdaElement homeassistant.components.recorder.history.legacy._get_last_state_changes_stmt (int number_of_states, str entity_id)
 
Iterable[Row] homeassistant.components.recorder.history.legacy._get_rows_with_session (HomeAssistant hass, Session session, datetime utc_point_in_time, list[str] entity_ids, *bool no_attributes=False)
 
StatementLambdaElement homeassistant.components.recorder.history.legacy._get_single_entity_states_stmt (datetime utc_point_in_time, str entity_id, bool no_attributes=False)
 
StatementLambdaElement homeassistant.components.recorder.history.legacy._get_states_for_entities_stmt (float run_start_ts, datetime utc_point_in_time, list[str] entity_ids, bool no_attributes)
 
tuple[StatementLambdaElement, bool] homeassistant.components.recorder.history.legacy._lambda_stmt_and_join_attributes (bool no_attributes, bool include_last_changed=True)
 
StatementLambdaElement homeassistant.components.recorder.history.legacy._significant_states_stmt (datetime start_time, datetime|None end_time, list[str] entity_ids, bool significant_changes_only, bool no_attributes)
 
dict[str, list[State|dict[str, Any]]] homeassistant.components.recorder.history.legacy._sorted_states_to_dict (HomeAssistant hass, Session session, Iterable[Row] states, datetime start_time, list[str] entity_ids, bool include_start_time_state=True, bool minimal_response=False, bool no_attributes=False, bool compressed_state_format=False)
 
StatementLambdaElement homeassistant.components.recorder.history.legacy._state_changed_during_period_stmt (datetime start_time, datetime|None end_time, str entity_id, bool no_attributes, bool descending, int|None limit)
 
dict[str, list[State]] homeassistant.components.recorder.history.legacy.get_full_significant_states_with_session (HomeAssistant hass, Session session, datetime start_time, datetime|None end_time=None, list[str]|None entity_ids=None, Filters|None filters=None, bool include_start_time_state=True, bool significant_changes_only=True, bool no_attributes=False)
 
dict[str, list[State]] homeassistant.components.recorder.history.legacy.get_last_state_changes (HomeAssistant hass, int number_of_states, str entity_id)
 
dict[str, list[State|dict[str, Any]]] homeassistant.components.recorder.history.legacy.get_significant_states (HomeAssistant hass, datetime start_time, datetime|None end_time=None, list[str]|None entity_ids=None, Filters|None filters=None, bool include_start_time_state=True, bool significant_changes_only=True, bool minimal_response=False, bool no_attributes=False, bool compressed_state_format=False)
 
dict[str, list[State|dict[str, Any]]] homeassistant.components.recorder.history.legacy.get_significant_states_with_session (HomeAssistant hass, Session session, datetime start_time, datetime|None end_time=None, list[str]|None entity_ids=None, Filters|None filters=None, bool include_start_time_state=True, bool significant_changes_only=True, bool minimal_response=False, bool no_attributes=False, bool compressed_state_format=False)
 
dict[str, list[State]] homeassistant.components.recorder.history.legacy.state_changes_during_period (HomeAssistant hass, datetime start_time, datetime|None end_time=None, str|None entity_id=None, bool no_attributes=False, bool descending=False, int|None limit=None, bool include_start_time_state=True)
 

Variables

tuple homeassistant.components.recorder.history.legacy._BASE_STATES
 
tuple homeassistant.components.recorder.history.legacy._BASE_STATES_NO_LAST_CHANGED
 
tuple homeassistant.components.recorder.history.legacy._BASE_STATES_NO_LAST_CHANGED_PRE_SCHEMA_31
 
tuple homeassistant.components.recorder.history.legacy._BASE_STATES_PRE_SCHEMA_31
 
dictionary homeassistant.components.recorder.history.legacy._FIELD_MAP
 
dictionary homeassistant.components.recorder.history.legacy._FIELD_MAP_PRE_SCHEMA_31
 
tuple homeassistant.components.recorder.history.legacy._QUERY_STATE_NO_ATTR
 
tuple homeassistant.components.recorder.history.legacy._QUERY_STATE_NO_ATTR_NO_LAST_CHANGED
 
tuple homeassistant.components.recorder.history.legacy._QUERY_STATE_NO_ATTR_NO_LAST_CHANGED_PRE_SCHEMA_31
 
tuple homeassistant.components.recorder.history.legacy._QUERY_STATE_NO_ATTR_PRE_SCHEMA_31
 
tuple homeassistant.components.recorder.history.legacy._QUERY_STATES
 
tuple homeassistant.components.recorder.history.legacy._QUERY_STATES_NO_LAST_CHANGED
 
tuple homeassistant.components.recorder.history.legacy._QUERY_STATES_NO_LAST_CHANGED_PRE_SCHEMA_31
 
tuple homeassistant.components.recorder.history.legacy._QUERY_STATES_PRE_SCHEMA_25
 
tuple homeassistant.components.recorder.history.legacy._QUERY_STATES_PRE_SCHEMA_25_NO_LAST_CHANGED
 
tuple homeassistant.components.recorder.history.legacy._QUERY_STATES_PRE_SCHEMA_31