From 58c66814316c8bf8d042d33f5fb5d6889e12f4af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Nenz=C3=A9n?= Date: Sun, 11 Aug 2024 18:54:07 +0200 Subject: [PATCH] Update __init__.py (#110) --- custom_components/wellbeing/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/wellbeing/__init__.py b/custom_components/wellbeing/__init__.py index 6afe5fc..d13f797 100644 --- a/custom_components/wellbeing/__init__.py +++ b/custom_components/wellbeing/__init__.py @@ -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)