Fix param gived to async_add_executor_job

This commit is contained in:
2021-04-10 12:09:49 +02:00
parent f72481236d
commit b4871b9374

View File

@@ -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