diff --git a/custom_components/georide/__init__.py b/custom_components/georide/__init__.py index 2de6c79..576633d 100644 --- a/custom_components/georide/__init__.py +++ b/custom_components/georide/__init__.py @@ -178,7 +178,7 @@ class GeoRideContext: if (exp_timestamp - TOKEN_SAFE_DAY) < epoch: _LOGGER.info("Time reached, renew token") - account = await self._hass.async_add_executor_job(GeoRideApi.get_authorisation_token, [self._email, self._password]) + account = await self._hass.async_add_executor_job(GeoRideApi.get_authorisation_token, self._email, self._password) config = self._hass.data[DOMAIN]["config"] config[CONF_TOKEN] = account.auth_token self._token = account.auth_token