Fix param gived to async_add_executor_job
This commit is contained in:
@@ -178,7 +178,7 @@ class GeoRideContext:
|
|||||||
if (exp_timestamp - TOKEN_SAFE_DAY) < epoch:
|
if (exp_timestamp - TOKEN_SAFE_DAY) < epoch:
|
||||||
_LOGGER.info("Time reached, renew token")
|
_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 = self._hass.data[DOMAIN]["config"]
|
||||||
config[CONF_TOKEN] = account.auth_token
|
config[CONF_TOKEN] = account.auth_token
|
||||||
self._token = account.auth_token
|
self._token = account.auth_token
|
||||||
|
|||||||
Reference in New Issue
Block a user