def validate_commands(config):
 if (CONF_COMMANDS not in config):
  config[CONF_COMMANDS] = {}
 elif (not isinstance(config[CONF_COMMANDS], dict)):
  _LOGGER.warning('Universal Media Player (%s) specified commands not dict in config. They will be ignored.', config[CONF_NAME])
  config[CONF_COMMANDS] = {}

def validate_commands ( config ) : if ( CONF_COMMANDS not in config ) : config [ CONF_COMMANDS ] = { } elif ( not isinstance ( config [ CONF_COMMANDS ] , dict ) ) : _LOGGER . warning ( 'Universal Media Player (%s) specified commands not dict in config. They will be ignored.' , config [ CONF_NAME ] ) config [ CONF_COMMANDS ] = { }
validate commands .