Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, email, password, vendor=Neato):
"""Initialize the account data."""
self._robots = set()
self.robot_serials = {}
self._vendor = vendor
self._endpoint = vendor.endpoint
self._maps = {}
self._headers = {'Accept': vendor.headers}
self._login(email, password)
self._persistent_maps = {}
def __init__(self, serial, secret, traits, vendor=Neato, name='',
endpoint='https://nucleo.neatocloud.com:4443',
has_persistent_maps=False):
"""
Initialize robot
:param serial: Robot serial
:param secret: Robot secret
:param name: Name of robot (optional)
:param traits: Extras the robot supports
"""
self.name = name
self._vendor = vendor
self.serial = serial
self.secret = secret
self.traits = traits
self.has_persistent_maps = has_persistent_maps