Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.logbook.models.LazyEventPartialState Class Reference

Public Member Functions

None __init__ (self, Row|EventAsRow row, dict[str, dict[str, Any]] event_data_cache)
 
str|None context_id (self)
 
str|None context_parent_id (self)
 
str|None context_user_id (self)
 
str|None entity_id (self)
 
EventType[Any]|str|None event_type (self)
 
str|None state (self)
 

Public Attributes

 data
 
 row
 

Detailed Description

A lazy version of core Event with limited State joined in.

Definition at line 38 of file models.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.logbook.models.LazyEventPartialState.__init__ (   self,
Row | EventAsRow  row,
dict[str, dict[str, Any]]  event_data_cache 
)
Init the lazy event.

Definition at line 41 of file models.py.

Member Function Documentation

◆ context_id()

str | None homeassistant.components.logbook.models.LazyEventPartialState.context_id (   self)
Return the context id.

Definition at line 84 of file models.py.

◆ context_parent_id()

str | None homeassistant.components.logbook.models.LazyEventPartialState.context_parent_id (   self)
Return the context parent id.

Definition at line 94 of file models.py.

◆ context_user_id()

str | None homeassistant.components.logbook.models.LazyEventPartialState.context_user_id (   self)
Return the context user id.

Definition at line 89 of file models.py.

◆ entity_id()

str | None homeassistant.components.logbook.models.LazyEventPartialState.entity_id (   self)
Return the entity id.

Definition at line 74 of file models.py.

◆ event_type()

EventType[Any] | str | None homeassistant.components.logbook.models.LazyEventPartialState.event_type (   self)
Return the event type.

Definition at line 69 of file models.py.

◆ state()

str | None homeassistant.components.logbook.models.LazyEventPartialState.state (   self)
Return the state.

Definition at line 79 of file models.py.

Member Data Documentation

◆ data

homeassistant.components.logbook.models.LazyEventPartialState.data

Definition at line 53 of file models.py.

◆ row

homeassistant.components.logbook.models.LazyEventPartialState.row

Definition at line 47 of file models.py.


The documentation for this class was generated from the following file: