def __init__(self, middleware, conf):
<EOL>required = {<EOL>'<STR_LIT>': lambda x: x,<EOL>'<STR_LIT>': int,<EOL>'<STR_LIT>': lambda x: x,<EOL>}<EOL>values = {}<EOL>for conf_key, xform in list(required.items()):<EOL><INDENT>try:<EOL><INDENT>values[conf_key[len('<STR_LIT>'):]] =xform(conf['<STR_LIT>'][conf_key])<EOL><DEDENT>except KeyError:<EOL><INDENT>warnings.warn("<STR_LIT>"<EOL>"<STR_LIT>" % conf_key)<EOL><DEDENT>except ValueError:<EOL><INDENT>warnings.warn("<STR_LIT>"<EOL>"<STR_LIT>" % conf_key)<EOL><DEDENT>else:<EOL><INDENT>del required[conf_key]<EOL><DEDENT><DEDENT>if required:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" %<EOL>'<STR_LIT:U+002CU+0020>'.join(['<STR_LIT>' % k<EOL>for k in sorted(required.keys())]))<EOL><DEDENT>super(RemoteControlDaemon, self).__init__(middleware, conf)<EOL>self.remote = ControlDaemonRPC(daemon=self, **values)<EOL>self.remote_limits = None<EOL>
Initialize the RemoteControlDaemon.