Upgrade black to 20.8b1 (#39287)
This commit is contained in:
1 parent
0d7eec710c
commit
1c2ebdf307
574 files changed
+4389
-1725
No files matched your search
@@ -26,7 +26,9 @@ class ConfigEntryNetatmoAuth(pyatmo.auth.NetatmoOAuth2):
|
||||
)
|
||||
super().__init__(token=self.session.token)
|
||||
|
||||
def refresh_tokens(self,) -> dict:
|
||||
def refresh_tokens(
|
||||
self,
|
||||
) -> dict:
|
||||
"""Refresh and return new Netatmo tokens using Home Assistant OAuth2 session."""
|
||||
run_coroutine_threadsafe(
|
||||
self.session.async_ensure_token_valid(), self.hass.loop
|
||||
|
||||
Reference in new issue
Block a user