(self)
return True
Refresh auth token.
Refresh auth token.
Refresh auth token .
def refresh_token(self):
        """Refresh auth token."""
        self.is_errored = True
        try:
            _LOGGER.info("Token expired, attempting automatic refresh.")
            self.login_response = self.login()
            self.extract_login_info()
            self.is_errored = False
        except LoginError as error:
            _LOGGER.error("Login endpoint failed. Try again later.")
            raise TokenRefreshFailed from error
        except (TypeError, KeyError) as error:
            _LOGGER.error("Malformed login response: %s", self.login_response)
            raise TokenRefreshFailed from error
        return True
def refresh_token ( self ) : self . is_errored = True try : _LOGGER . info ( "Token expired, attempting automatic refresh." ) self . login_response = self . login ( ) self . extract_login_info ( ) self . is_errored = False except LoginError as error : _LOGGER . error ( "Login endpoint failed. Try again later." ) raise TokenRefreshFailed from error except ( TypeError , KeyError ) as error : _LOGGER . error ( "Malformed login response: %s" , self . login_response ) raise TokenRefreshFailed from error return True