mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix cloud accountlinking replacing token data (#53865)
This commit is contained in:
parent
4241c4ca5b
commit
f3d4dac11f
@ -143,6 +143,7 @@ class CloudOAuth2Implementation(config_entry_oauth2_flow.AbstractOAuth2Implement
|
||||
|
||||
async def _async_refresh_token(self, token: dict) -> dict:
|
||||
"""Refresh a token."""
|
||||
return await account_link.async_fetch_access_token(
|
||||
new_token = await account_link.async_fetch_access_token(
|
||||
self.hass.data[DOMAIN], self.service, token["refresh_token"]
|
||||
)
|
||||
return {**token, **new_token}
|
||||
|
Loading…
x
Reference in New Issue
Block a user