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

Public Member Functions

None __init__ (self, LogbookRun logbook_run)
 
None augment (self, dict[str, Any] data, Row|EventAsRow context_row)
 
Row|EventAsRow|None get_context (self, bytes|None context_id_bin, Row|EventAsRow|None row)
 

Public Attributes

 context_lookup
 
 entity_name_cache
 
 event_cache
 
 external_events
 
 include_entity_name
 

Detailed Description

Augment data with context trace.

Definition at line 313 of file processor.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.logbook.processor.ContextAugmenter.__init__ (   self,
LogbookRun  logbook_run 
)
Init the augmenter.

Definition at line 316 of file processor.py.

Member Function Documentation

◆ augment()

None homeassistant.components.logbook.processor.ContextAugmenter.augment (   self,
dict[str, Any]  data,
Row | EventAsRow  context_row 
)
Augment data from the row and cache.

Definition at line 340 of file processor.py.

◆ get_context()

Row | EventAsRow | None homeassistant.components.logbook.processor.ContextAugmenter.get_context (   self,
bytes | None  context_id_bin,
Row | EventAsRow | None   row 
)
Get the context row from the id or row context.

Definition at line 324 of file processor.py.

Member Data Documentation

◆ context_lookup

homeassistant.components.logbook.processor.ContextAugmenter.context_lookup

Definition at line 318 of file processor.py.

◆ entity_name_cache

homeassistant.components.logbook.processor.ContextAugmenter.entity_name_cache

Definition at line 319 of file processor.py.

◆ event_cache

homeassistant.components.logbook.processor.ContextAugmenter.event_cache

Definition at line 321 of file processor.py.

◆ external_events

homeassistant.components.logbook.processor.ContextAugmenter.external_events

Definition at line 320 of file processor.py.

◆ include_entity_name

homeassistant.components.logbook.processor.ContextAugmenter.include_entity_name

Definition at line 322 of file processor.py.


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