Classes | |
| class | ABCCachedProperties |
| class | CachedProperties |
| class | CalculatedState |
| class | Entity |
| class | EntityDescription |
| class | EntityInfo |
| class | EntityPlatformState |
| class | StateInfo |
| class | ToggleEntity |
| class | ToggleEntityDescription |
Functions | |
| str | async_generate_entity_id (str entity_id_format, str|None name, Iterable[str]|None current_ids=None, HomeAssistant|None hass=None) |
| None | async_setup (HomeAssistant hass) |
| dict[str, EntityInfo] | entity_sources (HomeAssistant hass) |
| str | generate_entity_id (str entity_id_format, str|None name, list[str]|None current_ids=None, HomeAssistant|None hass=None) |
| Any|None | get_capability (HomeAssistant hass, str entity_id, str capability) |
| str|None | get_device_class (HomeAssistant hass, str entity_id) |
| int | get_supported_features (HomeAssistant hass, str entity_id) |
| str|None | get_unit_of_measurement (HomeAssistant hass, str entity_id) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| _SENTINEL = object() | |
| dictionary | CACHED_PROPERTIES_WITH_ATTR_ |
| int | CAPABILITIES_UPDATE_LIMIT = 100 |
| int | CONTEXT_RECENT_TIME_SECONDS = 5 |
| string | DATA_ENTITY_SOURCE = "entity_info" |
| int | FLOAT_PRECISION = abs(int(math.floor(math.log10(abs(sys.float_info.epsilon))))) - 1 |
| int | SLOW_UPDATE_WARNING = 10 |
| timer = time.time | |
| dictionary | TOGGLE_ENTITY_CACHED_PROPERTIES_WITH_ATTR_ = {"is_on"} |
An abstract class for entities.
| 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 | ||
| ) |
|
private |
| 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 |