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

Public Member Functions

None __init__ (self, HomeAssistant hass)
 
str get (self, str entity_id)
 

Private Attributes

 _hass
 

Detailed Description

A cache to lookup the name for an entity.

This class should not be used to lookup attributes
that are expected to change state.

Definition at line 393 of file processor.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.logbook.processor.EntityNameCache.__init__ (   self,
HomeAssistant  hass 
)
Init the cache.

Definition at line 400 of file processor.py.

Member Function Documentation

◆ get()

str homeassistant.components.logbook.processor.EntityNameCache.get (   self,
str  entity_id 
)
Lookup an the friendly name.

Definition at line 405 of file processor.py.

Member Data Documentation

◆ _hass

homeassistant.components.logbook.processor.EntityNameCache._hass
private

Definition at line 402 of file processor.py.


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