mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-13 20:36:29 +00:00
Fix requests Oauth2Session arguments (#364)
This commit is contained in:
parent
91bced21d9
commit
0ec3b012b0
@ -215,9 +215,11 @@ class Auth:
|
|||||||
self.client_secret = client_secret
|
self.client_secret = client_secret
|
||||||
self.token_updater = token_updater
|
self.token_updater = token_updater
|
||||||
|
|
||||||
|
extra = {"client_id": self.client_id, "client_secret": self.client_secret}
|
||||||
|
|
||||||
self._oauth = OAuth2Session(
|
self._oauth = OAuth2Session(
|
||||||
|
auto_refresh_kwargs=extra,
|
||||||
client_id=client_id,
|
client_id=client_id,
|
||||||
client_secret=client_secret,
|
|
||||||
token=token,
|
token=token,
|
||||||
token_updater=token_updater,
|
token_updater=token_updater,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user