'Turn the device on.'

def turn_on(self, **kwargs):

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