Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.logbook.processor.EventCache Class Reference

Public Member Functions

None __init__ (self, dict[str, dict[str, Any]] event_data_cache)
 
None clear (self)
 
LazyEventPartialState get (self, EventAsRow|Row row)
 

Public Attributes

 event_cache
 

Private Attributes

 _event_data_cache
 

Detailed Description

Cache LazyEventPartialState by row.

Definition at line 419 of file processor.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.logbook.processor.EventCache.__init__ (   self,
dict[str, dict[str, Any]]  event_data_cache 
)
Init the cache.

Definition at line 422 of file processor.py.

Member Function Documentation

◆ clear()

None homeassistant.components.logbook.processor.EventCache.clear (   self)
Clear the event cache.

Definition at line 438 of file processor.py.

◆ get()

LazyEventPartialState homeassistant.components.logbook.processor.EventCache.get (   self,
EventAsRow | Row  row 
)
Get the event from the row.

Definition at line 427 of file processor.py.

Member Data Documentation

◆ _event_data_cache

homeassistant.components.logbook.processor.EventCache._event_data_cache
private

Definition at line 424 of file processor.py.

◆ event_cache

homeassistant.components.logbook.processor.EventCache.event_cache

Definition at line 441 of file processor.py.


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