'Turn the device on.'

def turn_on(self, **kwargs):

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