Home Assistant Unofficial Reference 2024.12.1
entity.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.helpers.entity.ABCCachedProperties
 
class  homeassistant.helpers.entity.CachedProperties
 
class  homeassistant.helpers.entity.CalculatedState
 
class  homeassistant.helpers.entity.Entity
 
class  homeassistant.helpers.entity.EntityDescription
 
class  homeassistant.helpers.entity.EntityInfo
 
class  homeassistant.helpers.entity.EntityPlatformState
 
class  homeassistant.helpers.entity.StateInfo
 
class  homeassistant.helpers.entity.ToggleEntity
 
class  homeassistant.helpers.entity.ToggleEntityDescription
 

Namespaces

 homeassistant.helpers.entity
 

Functions

str homeassistant.helpers.entity.async_generate_entity_id (str entity_id_format, str|None name, Iterable[str]|None current_ids=None, HomeAssistant|None hass=None)
 
None homeassistant.helpers.entity.async_setup (HomeAssistant hass)
 
dict[str, EntityInfo] homeassistant.helpers.entity.entity_sources (HomeAssistant hass)
 
str homeassistant.helpers.entity.generate_entity_id (str entity_id_format, str|None name, list[str]|None current_ids=None, HomeAssistant|None hass=None)
 
Any|None homeassistant.helpers.entity.get_capability (HomeAssistant hass, str entity_id, str capability)
 
str|None homeassistant.helpers.entity.get_device_class (HomeAssistant hass, str entity_id)
 
int homeassistant.helpers.entity.get_supported_features (HomeAssistant hass, str entity_id)
 
str|None homeassistant.helpers.entity.get_unit_of_measurement (HomeAssistant hass, str entity_id)
 

Variables

 homeassistant.helpers.entity._LOGGER = logging.getLogger(__name__)
 
 homeassistant.helpers.entity._SENTINEL = object()
 
dictionary homeassistant.helpers.entity.CACHED_PROPERTIES_WITH_ATTR_
 
int homeassistant.helpers.entity.CAPABILITIES_UPDATE_LIMIT = 100
 
int homeassistant.helpers.entity.CONTEXT_RECENT_TIME_SECONDS = 5
 
string homeassistant.helpers.entity.DATA_ENTITY_SOURCE = "entity_info"
 
int homeassistant.helpers.entity.FLOAT_PRECISION = abs(int(math.floor(math.log10(abs(sys.float_info.epsilon))))) - 1
 
int homeassistant.helpers.entity.SLOW_UPDATE_WARNING = 10
 
 homeassistant.helpers.entity.timer = time.time
 
dictionary homeassistant.helpers.entity.TOGGLE_ENTITY_CACHED_PROPERTIES_WITH_ATTR_ = {"is_on"}