'Turn the device off.'

def turn_off(self, **kwargs):

    request = requests.get('{}/digital/{}/0'.format(self._resource, self._pin), timeout=10)
    if (request.status_code == 200):
        self._state = False
    else:
        _LOGGER.error("Can't    turn    off    pin    %s    at    %s", self._pin, self._resource)
