Skip to content

Having Issues with Configuration #100

Open
@colb1232

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions