Description
Everything’s been working with the integration until today and I got this error message:
2024-10-23 21:12:31.553 ERROR (MainThread) [custom_components.peloton.config_flow] Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/peloton/config_flow.py", line 115, in async_step_user
api = await async_validate_input(self.hass, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/peloton/config_flow.py", line 41, in async_validate_input
await hass.async_add_executor_job(api.GetMe)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pylotoncycle/pylotoncycle.py", line 51, in GetMe
self.username = resp["username"]
KeyError: 'username'
Activity