async def async_validate_config_item(hass, config, full_config=None): """Validate config item.""" if blueprint.is_blueprint_instance_config(config): blueprints = async_get_blueprints(hass) return await blueprints.async_inputs_from_config(config) config = PLATFORM_SCHEMA(config) config[CONF_TRIGGER] = await async_validate_trigger_config( hass, config[CONF_TRIGGER] ) if CONF_CONDITION in config: config[CONF_CONDITION] = await asyncio.gather( *[ async_validate_condition_config(hass, cond) for cond in config[CONF_CONDITION] ] ) config[CONF_ACTION] = await script.async_validate_actions_config( hass, config[CONF_ACTION] ) return config
async def async_validate_config_item(hass, config, full_config=None): """Validate config item.""" if is_blueprint_instance_config(config): blueprints = async_get_blueprints(hass) return await blueprints.async_inputs_from_config(config) config = SCRIPT_ENTITY_SCHEMA(config) config[CONF_SEQUENCE] = await async_validate_actions_config( hass, config[CONF_SEQUENCE]) return config