Home Assistant Unofficial Reference 2024.12.1
homeassistant.helpers.entity_values.EntityValues Class Reference

Public Member Functions

None __init__ (self, dict[str, dict[str, str]]|None exact=None, dict[str, dict[str, str]]|None domain=None, dict[str, dict[str, str]]|None glob=None)
 
dict[str, str] get (self, str entity_id)
 

Private Attributes

 _domain
 
 _exact
 
 _glob
 

Detailed Description

Class to store entity id based values.

This class is expected to only be used infrequently
as it caches all entity ids up to MAX_EXPECTED_ENTITY_IDS.

The cache includes `self` so it is important to
only use this in places where usage of `EntityValues` is immortal.

Definition at line 14 of file entity_values.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.helpers.entity_values.EntityValues.__init__ (   self,
dict[str, dict[str, str]] | None   exact = None,
dict[str, dict[str, str]] | None   domain = None,
dict[str, dict[str, str]] | None   glob = None 
)
Initialize an EntityConfigDict.

Definition at line 24 of file entity_values.py.

Member Function Documentation

◆ get()

dict[str, str] homeassistant.helpers.entity_values.EntityValues.get (   self,
str  entity_id 
)
Get config for an entity id.

Definition at line 44 of file entity_values.py.

Member Data Documentation

◆ _domain

homeassistant.helpers.entity_values.EntityValues._domain
private

Definition at line 32 of file entity_values.py.

◆ _exact

homeassistant.helpers.entity_values.EntityValues._exact
private

Definition at line 31 of file entity_values.py.

◆ _glob

homeassistant.helpers.entity_values.EntityValues._glob
private

Definition at line 41 of file entity_values.py.


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