(self, login_url=LOGIN_ENDPOINT)
Attempt login to blink servers.
Attempt login to blink servers.
Attempt login to blink servers .
def login(self, login_url=LOGIN_ENDPOINT):
        """Attempt login to blink servers."""
        self.validate_login()
        _LOGGER.info("Attempting login with %s", login_url)
        response = api.request_login(self, login_url, self.data, is_retry=False,)
        try:
            if response.status_code == 200:
                return response.json()
            raise LoginError
        except AttributeError as error:
            raise LoginError from error
def login ( self , login_url = LOGIN_ENDPOINT ) : self . validate_login ( ) _LOGGER . info ( "Attempting login with %s" , login_url ) response = api . request_login ( self , login_url , self . data , is_retry = False , ) try : if response . status_code == 200 : return response . json ( ) raise LoginError except AttributeError as error : raise LoginError from error