Classes | |
| class | _TemplateAttribute |
| class | TemplateEntity |
Functions | |
| vol.Schema | make_template_entity_common_schema (str default_name) |
| dict[str, Any] | rewrite_common_legacy_to_modern_conf (HomeAssistant hass, dict[str, Any] entity_cfg, dict[str, str]|None extra_legacy_fields=None) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| dictionary | LEGACY_FIELDS |
| TEMPLATE_ENTITY_ATTRIBUTES_SCHEMA_LEGACY | |
| TEMPLATE_ENTITY_AVAILABILITY_SCHEMA | |
| TEMPLATE_ENTITY_AVAILABILITY_SCHEMA_LEGACY | |
| TEMPLATE_ENTITY_COMMON_SCHEMA | |
| TEMPLATE_ENTITY_COMMON_SCHEMA_LEGACY | |
| TEMPLATE_ENTITY_ICON_SCHEMA | |
TemplateEntity utility class.
| vol.Schema homeassistant.components.template.template_entity.make_template_entity_common_schema | ( | str | default_name | ) |
Return a schema with default name.
Definition at line 88 of file template_entity.py.
| dict[str, Any] homeassistant.components.template.template_entity.rewrite_common_legacy_to_modern_conf | ( | HomeAssistant | hass, |
| dict[str, Any] | entity_cfg, | ||
| dict[str, str] | None | extra_legacy_fields = None |
||
| ) |
Rewrite legacy config.
Definition at line 129 of file template_entity.py.
|
private |
Definition at line 65 of file template_entity.py.
| dictionary homeassistant.components.template.template_entity.LEGACY_FIELDS |
Definition at line 120 of file template_entity.py.
| homeassistant.components.template.template_entity.TEMPLATE_ENTITY_ATTRIBUTES_SCHEMA_LEGACY |
Definition at line 98 of file template_entity.py.
| homeassistant.components.template.template_entity.TEMPLATE_ENTITY_AVAILABILITY_SCHEMA |
Definition at line 67 of file template_entity.py.
| homeassistant.components.template.template_entity.TEMPLATE_ENTITY_AVAILABILITY_SCHEMA_LEGACY |
Definition at line 106 of file template_entity.py.
| homeassistant.components.template.template_entity.TEMPLATE_ENTITY_COMMON_SCHEMA |
Definition at line 79 of file template_entity.py.
| homeassistant.components.template.template_entity.TEMPLATE_ENTITY_COMMON_SCHEMA_LEGACY |
Definition at line 112 of file template_entity.py.
| homeassistant.components.template.template_entity.TEMPLATE_ENTITY_ICON_SCHEMA |
Definition at line 73 of file template_entity.py.