Functions | |
| CompoundSelect | _apply_devices_context_union (Select sel, float start_day, float end_day, tuple[int,...] event_type_ids, list[str] json_quotable_device_ids) |
| Select | _select_device_id_context_ids_sub_query (float start_day, float end_day, tuple[int,...] event_type_ids, list[str] json_quotable_device_ids) |
| BooleanClauseList | apply_event_device_id_matchers (Iterable[str] json_quotable_device_ids) |
| StatementLambdaElement | devices_stmt (float start_day, float end_day, tuple[int,...] event_type_ids, list[str] json_quotable_device_ids) |
Devices queries for logbook.
|
private |
Generate a CTE to find the device context ids and a query to find linked row.
Definition at line 47 of file devices.py.
|
private |
Generate a subquery to find context ids for multiple devices.
Definition at line 32 of file devices.py.
| BooleanClauseList homeassistant.components.logbook.queries.devices.apply_event_device_id_matchers | ( | Iterable[str] | json_quotable_device_ids | ) |
Create matchers for the device_ids in the event_data.
Definition at line 98 of file devices.py.
| StatementLambdaElement homeassistant.components.logbook.queries.devices.devices_stmt | ( | float | start_day, |
| float | end_day, | ||
| tuple[int, ...] | event_type_ids, | ||
| list[str] | json_quotable_device_ids | ||
| ) |
Generate a logbook query for multiple devices.
Definition at line 78 of file devices.py.