Correct typo in internal logbook function names (#71882)
This commit is contained in:
parent
3d2f4e31af
commit
8f33437507
1 changed files with 4 additions and 4 deletions
|
@ -160,7 +160,7 @@ def _entities_stmt(
|
||||||
)
|
)
|
||||||
stmt = stmt.add_criteria(
|
stmt = stmt.add_criteria(
|
||||||
lambda s: s.where(_apply_event_entity_id_matchers(entity_ids)).union_all(
|
lambda s: s.where(_apply_event_entity_id_matchers(entity_ids)).union_all(
|
||||||
_states_query_for_entitiy_ids(start_day, end_day, entity_ids),
|
_states_query_for_entity_ids(start_day, end_day, entity_ids),
|
||||||
_select_events_context_only().where(
|
_select_events_context_only().where(
|
||||||
Events.context_id.in_(
|
Events.context_id.in_(
|
||||||
_select_entities_context_ids_sub_query(
|
_select_entities_context_ids_sub_query(
|
||||||
|
@ -218,7 +218,7 @@ def _single_entity_stmt(
|
||||||
| EventData.shared_data.like(entity_id_like)
|
| EventData.shared_data.like(entity_id_like)
|
||||||
)
|
)
|
||||||
.union_all(
|
.union_all(
|
||||||
_states_query_for_entitiy_id(start_day, end_day, entity_id),
|
_states_query_for_entity_id(start_day, end_day, entity_id),
|
||||||
_select_events_context_only().where(
|
_select_events_context_only().where(
|
||||||
Events.context_id.in_(
|
Events.context_id.in_(
|
||||||
_select_entity_context_ids_sub_query(
|
_select_entity_context_ids_sub_query(
|
||||||
|
@ -304,13 +304,13 @@ def _states_query_for_context_id(start_day: dt, end_day: dt, context_id: str) ->
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def _states_query_for_entitiy_id(start_day: dt, end_day: dt, entity_id: str) -> Query:
|
def _states_query_for_entity_id(start_day: dt, end_day: dt, entity_id: str) -> Query:
|
||||||
return _apply_states_filters(
|
return _apply_states_filters(
|
||||||
_apply_entities_hints(_select_states()), start_day, end_day
|
_apply_entities_hints(_select_states()), start_day, end_day
|
||||||
).where(States.entity_id == entity_id)
|
).where(States.entity_id == entity_id)
|
||||||
|
|
||||||
|
|
||||||
def _states_query_for_entitiy_ids(
|
def _states_query_for_entity_ids(
|
||||||
start_day: dt, end_day: dt, entity_ids: list[str]
|
start_day: dt, end_day: dt, entity_ids: list[str]
|
||||||
) -> Query:
|
) -> Query:
|
||||||
return _apply_states_filters(
|
return _apply_states_filters(
|
||||||
|
|
Loading…
Add table
Reference in a new issue