mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-22 17:36:15 +00:00
Linters don't code
This commit is contained in:
@@ -41,10 +41,11 @@ class OpenIdCredentialManager(CredentialManager):
|
||||
url = self.generate_authorize_url(redir_uri, secrets.token_urlsafe(16),
|
||||
code_challenge=code_challenge, code_challenge_method="S256")
|
||||
|
||||
logger.info("Now login to this URL in a browser: %s", url)
|
||||
|
||||
ret = ""
|
||||
while len(ret) != 36:
|
||||
logger.info("Now login to this URL in a browser: %s", url)
|
||||
ret = input("\nCopy+paste the resulting mymop-code (in F12 > Network" \
|
||||
ret = input("\nCopy+paste the resulting mymop-code (in F12 > Network, " \
|
||||
"when you hit the final OK button, 36 chars, UUID format): ")
|
||||
|
||||
self._token_request({ "grant_type": 'authorization_code', "code": ret,
|
||||
|
||||
@@ -32,7 +32,7 @@ logger = CustomLogger.getLogger(__name__)
|
||||
|
||||
class PSAClient:
|
||||
def connect(self, country_code):
|
||||
self.manager.init_with_user_credentials_realm(country_code, self.realm)
|
||||
self.manager.init_with_user_credentials_realm(country_code)
|
||||
|
||||
# pylint: disable=too-many-arguments
|
||||
def __init__(self, refresh_token, client_id, client_secret, remote_refresh_token, customer_id, realm, country_code,
|
||||
|
||||
Reference in New Issue
Block a user