Classes | |
| class | RecorderData |
Functions | |
| None | async_initialize_recorder (HomeAssistant hass) |
| bool | async_migration_in_progress (HomeAssistant hass) |
| bool | async_migration_is_live (HomeAssistant hass) |
| bool | async_wait_recorder (HomeAssistant hass) |
| Recorder | get_instance (HomeAssistant hass) |
| Generator[Session] | session_scope (*HomeAssistant|None hass=None, Session|None session=None, Callable[[Exception], bool]|None exception_filter=None, bool read_only=False) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
Helpers to check recorder.
| None homeassistant.helpers.recorder.async_initialize_recorder | ( | HomeAssistant | hass | ) |
Initialize recorder data.
Definition at line 54 of file recorder.py.
| bool homeassistant.helpers.recorder.async_migration_in_progress | ( | HomeAssistant | hass | ) |
Check to see if a recorder migration is in progress.
Definition at line 36 of file recorder.py.
| bool homeassistant.helpers.recorder.async_migration_is_live | ( | HomeAssistant | hass | ) |
Check to see if a recorder migration is live.
Definition at line 45 of file recorder.py.
| bool homeassistant.helpers.recorder.async_wait_recorder | ( | HomeAssistant | hass | ) |
Wait for recorder to initialize and return connection status. Returns False immediately if the recorder is not enabled.
Definition at line 63 of file recorder.py.
| Recorder homeassistant.helpers.recorder.get_instance | ( | HomeAssistant | hass | ) |
Get the recorder instance.
Definition at line 74 of file recorder.py.
| Generator[Session] homeassistant.helpers.recorder.session_scope | ( | *HomeAssistant | None | hass = None, |
| Session | None | session = None, |
||
| Callable[[Exception], bool] | None | exception_filter = None, |
||
| bool | read_only = False |
||
| ) |
Provide a transactional scope around a series of operations. read_only is used to indicate that the session is only used for reading data and that no commit is required. It does not prevent the session from writing and is not a security measure.
Definition at line 80 of file recorder.py.
|
private |
Definition at line 21 of file recorder.py.