Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.recorder.models.legacy Namespace Reference

Classes

class  LegacyLazyState
 

Functions

dict[str, Any] decode_attributes_from_row_legacy (Row row, dict[str, dict[str, Any]] attr_cache)
 
dict[str, Any] legacy_row_to_compressed_state (Row row, dict[str, dict[str, Any]] attr_cache, datetime|None start_time, str|None entity_id=None)
 

Detailed Description

Models for Recorder.

Function Documentation

◆ decode_attributes_from_row_legacy()

dict[str, Any] homeassistant.components.recorder.models.legacy.decode_attributes_from_row_legacy ( Row  row,
dict[str, dict[str, Any]]   attr_cache 
)
Decode attributes from a database row.

Definition at line 160 of file legacy.py.

◆ legacy_row_to_compressed_state()

dict[str, Any] homeassistant.components.recorder.models.legacy.legacy_row_to_compressed_state ( Row  row,
dict[str, dict[str, Any]]  attr_cache,
datetime | None  start_time,
str | None   entity_id = None 
)
Convert a database row to a compressed state schema 31 and later.

Definition at line 137 of file legacy.py.