Fix bug in fitbit credential import for expired tokens (#103024)
* Fix bug in fitbit credential import on token refresh * Use stable test ids * Update homeassistant/components/fitbit/sensor.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
b323295aa1
commit
d75f1b2b3e
3 changed files with 23 additions and 11 deletions
|
@ -41,10 +41,11 @@ TIMESERIES_API_URL_FORMAT = (
|
|||
|
||||
# These constants differ from values in the config entry or fitbit.conf
|
||||
SERVER_ACCESS_TOKEN = {
|
||||
"refresh_token": "server-access-token",
|
||||
"access_token": "server-refresh-token",
|
||||
"refresh_token": "server-refresh-token",
|
||||
"access_token": "server-access-token",
|
||||
"type": "Bearer",
|
||||
"expires_in": 60,
|
||||
"scope": " ".join(OAUTH_SCOPES),
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue