'Initialize the Neato Connected switches.'

def __init__(self, hass, robot, switch_type):

    self.type = switch_type
    self.robot = robot
    self.neato = hass.data[NEATO_LOGIN]
    self._robot_name = '{}    {}'.format(self.robot.name, SWITCH_TYPES[self.type][0])
    try:
        self._state = self.robot.state
    except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError) as ex:
        _LOGGER.warning('Neato    connection    error:    %s', ex)
        self._state = None
    self._schedule_state = None
    self._clean_state = None
