Skip to content

Commit

Permalink
Update __init__.py (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohNan authored Aug 11, 2024
1 parent 5726664 commit 58c6681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/wellbeing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ class WellBeingTokenManager(TokenManager):
def __init__(self, hass: HomeAssistant, entry: ConfigEntry):
self._hass = hass
self._entry = entry
self.api_key = entry.data.get(CONF_API_KEY)
api_key = entry.data.get(CONF_API_KEY)
refresh_token = entry.data.get(CONF_REFRESH_TOKEN)
access_token = entry.data.get(CONF_ACCESS_TOKEN)
super().__init__(access_token, refresh_token, self.api_key)
super().__init__(access_token, refresh_token, api_key)

def update(self, access_token: str, refresh_token: str, api_key: str | None = None):
super().update(access_token, refresh_token, api_key)
Expand Down

0 comments on commit 58c6681

Please sign in to comment.