'Initialize the switch.'

def __init__(self, resource, location, name, pin):

    super().__init__(resource, location, name)
    self._pin = pin
    request = requests.get('{}/mode/{}/o'.format(self._resource, self._pin), timeout=10)
    if (request.status_code != 200):
        _LOGGER.error("Can't    set    mode")
        self._available = False
