Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def control_run(self, loop=1, wait_for_ready=True, mode='teach'):
self.__logger.debug('Eva.control_run called')
if mode == 'teach':
with self.__eva_locker.set_renew_period(Eva.__TEACH_RENEW_PERIOD):
return self.__http_client.control_run(loop=loop, wait_for_ready=wait_for_ready, mode=mode)
else:
return self.__http_client.control_run(loop=loop, wait_for_ready=wait_for_ready, mode=mode)