Public Member Functions | |
| None | __init__ (self, HomeAssistant hass) |
| str | get (self, str entity_id) |
Private Attributes | |
| _hass | |
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.
| None homeassistant.components.logbook.processor.EntityNameCache.__init__ | ( | self, | |
| HomeAssistant | hass | ||
| ) |
Init the cache.
Definition at line 400 of file processor.py.
| str homeassistant.components.logbook.processor.EntityNameCache.get | ( | self, | |
| str | entity_id | ||
| ) |
Lookup an the friendly name.
Definition at line 405 of file processor.py.
|
private |
Definition at line 402 of file processor.py.