def _add_devices_from_config(args):
config = _parse_config(args.config)<EOL>for device in config['<STR_LIT>']:<EOL><INDENT>if args.default:<EOL><INDENT>if device == "<STR_LIT:default>":<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if config['<STR_LIT>'][device]['<STR_LIT:host>'] == args.default:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT><DEDENT>add(device, config['<STR_LIT>'][device]['<STR_LIT:host>'], config['<STR_LIT>'][device].get('<STR_LIT>', '<STR_LIT>'),<EOL>config['<STR_LIT>'][device].get('<STR_LIT>', '<STR_LIT>'), config['<STR_LIT>'][device].get('<STR_LIT>', <NUM_LIT>))<EOL><DEDENT>
Add devices from config.