Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.template.config Namespace Reference

Functions

TemplateConfig _async_resolve_blueprints (HomeAssistant hass, ConfigType config)
 
ConfigType async_validate_config (HomeAssistant hass, ConfigType config)
 
TemplateConfig async_validate_config_section (HomeAssistant hass, ConfigType config)
 

Variables

 CONFIG_SECTION_SCHEMA
 
string PACKAGE_MERGE_HINT = "list"
 
 TEMPLATE_BLUEPRINT_INSTANCE_SCHEMA
 

Detailed Description

Template config validator.

Function Documentation

◆ _async_resolve_blueprints()

TemplateConfig homeassistant.components.template.config._async_resolve_blueprints ( HomeAssistant  hass,
ConfigType  config 
)
private
If a config item requires a blueprint, resolve that item to an actual config.

Definition at line 100 of file config.py.

◆ async_validate_config()

ConfigType homeassistant.components.template.config.async_validate_config ( HomeAssistant  hass,
ConfigType  config 
)
Validate config.

Definition at line 157 of file config.py.

◆ async_validate_config_section()

TemplateConfig homeassistant.components.template.config.async_validate_config_section ( HomeAssistant  hass,
ConfigType   config 
)
Validate an entire config section for the template integration.

Definition at line 137 of file config.py.

Variable Documentation

◆ CONFIG_SECTION_SCHEMA

homeassistant.components.template.config.CONFIG_SECTION_SCHEMA

Definition at line 55 of file config.py.

◆ PACKAGE_MERGE_HINT

string homeassistant.components.template.config.PACKAGE_MERGE_HINT = "list"

Definition at line 53 of file config.py.

◆ TEMPLATE_BLUEPRINT_INSTANCE_SCHEMA

homeassistant.components.template.config.TEMPLATE_BLUEPRINT_INSTANCE_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Optional(CONF_NAME): cv.string,
4  vol.Optional(CONF_UNIQUE_ID): cv.string,
5  }
6 ).extend(BLUEPRINT_INSTANCE_FIELDS.schema)

Definition at line 92 of file config.py.