I installed my Tahoma 2 days ago, but now I am getting âToken expiredâ messages. However, Iâm not sure how to fix that. Can someone point me in the right direction?
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pymfy/api/somfy_api.py", line 123, in _request
return getattr(self._oauth, method)(url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 477, in request
url, headers, data = self._client.add_token(
File "/usr/local/lib/python3.8/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 198, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 272, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 463, in async_device_update
await self.async_update() # type: ignore
File "/usr/src/homeassistant/homeassistant/components/somfy/cover.py", line 50, in async_update
await super().async_update()
File "/usr/src/homeassistant/homeassistant/components/somfy/__init__.py", line 162, in async_update
await update_all_devices(self.hass)
File "/usr/src/homeassistant/homeassistant/components/somfy/__init__.py", line 177, in update_all_devices
data[DEVICES] = await hass.async_add_executor_job(data[API].get_devices)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/pymfy/api/somfy_api.py", line 61, in get_devices
site_ids = [s.id for s in self.get_sites()] if site_id is None else [site_id]
File "/usr/local/lib/python3.8/site-packages/pymfy/api/somfy_api.py", line 42, in get_sites
response = self.get("/site")
File "/usr/local/lib/python3.8/site-packages/pymfy/api/somfy_api.py", line 80, in get
return self._request("get", path)
File "/usr/local/lib/python3.8/site-packages/pymfy/api/somfy_api.py", line 127, in _request
return getattr(self._oauth, method)(url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 477, in request
url, headers, data = self._client.add_token(
File "/usr/local/lib/python3.8/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 198, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)