Fix fitbit error when trying to access token after upgrade. (#9183)
Fix fitbit error when trying to access token after upgrade. (#9183)

*   - Fixes Fitbit error when trying to refresh oauth token

  The 3rd python-fitbit module requires an extra kwarg on the FitBit
  constructor called refresh_cb. The value should be a function that
  accepts one argument token.

  This value will be a dictionary with the keys:

     'access_token', 'refresh_token', 'expires_at'

  This implements a lambda refresh_cb as required by the Fitbit module
  to work, however the new token will always be save manually on
  every update() call.

*  Simplified by calling  expires_at instead reading again from dict

MartinHjelmare/home-assistant,aequitas/home-assistant,fbradyirl/home-assistant,mKeRix/home-assistant,tboyce1/home-assistant,tinloaf/home-assistant,home-assistant/home-assistant,tboyce1/home-assistant,turbokongen/home-assistant,jabesq/home-assistant,kennedyshead/home-assistant,Danielhiversen/home-assistant,nkgilley/home-assistant,LinuxChristian/home-assistant,w1ll1am23/home-assistant,stefan-jonasson/home-assistant,lukas-hetzenecker/home-assistant,auduny/home-assistant,toddeye/home-assistant,molobrakos/home-assistant,molobrakos/home-assistant,postlund/home-assistant,joopert/home-assistant,jabesq/home-assistant,PetePriority/home-assistant,rohitranjan1991/home-assistant,kennedyshead/home-assistant,toddeye/home-assistant,turbokongen/home-assistant,auduny/home-assistant,stefan-jonasson/home-assistant,aequitas/home-assistant,leppa/home-assistant,rohitranjan1991/home-assistant,fbradyirl/home-assistant,aronsky/home-assistant,LinuxChristian/home-assistant,titilambert/home-assistant,joopert/home-assistant,LinuxChristian/home-assistant,persandstrom/home-assistant,mKeRix/home-assistant,adrienbrault/home-assistant,mezz64/home-assistant,GenericStudent/home-assistant,nugget/home-assistant,jnewland/home-assistant,auduny/home-assistant,ewandor/home-assistant,adrienbrault/home-assistant,qedi-r/home-assistant,titilambert/home-assistant,stefan-jonasson/home-assistant,jawilson/home-assistant,jamespcole/home-assistant,sdague/home-assistant,persandstrom/home-assistant,lukas-hetzenecker/home-assistant,sdague/home-assistant,molobrakos/home-assistant,FreekingDean/home-assistant,jabesq/home-assistant,PetePriority/home-assistant,sander76/home-assistant,PetePriority/home-assistant,jamespcole/home-assistant,tboyce1/home-assistant,fbradyirl/home-assistant,DavidLP/home-assistant,stefan-jonasson/home-assistant,DavidLP/home-assistant,LinuxChristian/home-assistant,pschmitt/home-assistant,HydrelioxGitHub/home-assistant,pschmitt/home-assistant,partofthething/home-assistant,soldag/home-assistant,Danielhiversen/home-assistant,balloob/home-assistant,aronsky/home-assistant,Teagan42/home-assistant,MartinHjelmare/home-assistant,ewandor/home-assistant,persandstrom/home-assistant,balloob/home-assistant,tinloaf/home-assistant,tboyce1/home-assistant,mezz64/home-assistant,leppa/home-assistant,balloob/home-assistant,Cinntax/home-assistant,rohitranjan1991/home-assistant,mKeRix/home-assistant,tinloaf/home-assistant,postlund/home-assistant,robbiet480/home-assistant,home-assistant/home-assistant,sander76/home-assistant,MartinHjelmare/home-assistant,jawilson/home-assistant,Cinntax/home-assistant,nugget/home-assistant,HydrelioxGitHub/home-assistant,HydrelioxGitHub/home-assistant,tboyce021/home-assistant,soldag/home-assistant,Teagan42/home-assistant,robbiet480/home-assistant,partofthething/home-assistant,FreekingDean/home-assistant,LinuxChristian/home-assistant,tchellomello/home-assistant,jnewland/home-assistant,mKeRix/home-assistant,jnewland/home-assistant,jamespcole/home-assistant,nkgilley/home-assistant,GenericStudent/home-assistant,w1ll1am23/home-assistant,qedi-r/home-assistant,ewandor/home-assistant,tboyce021/home-assistant,nugget/home-assistant,aequitas/home-assistant,tchellomello/home-assistant,DavidLP/home-assistant