Skip to content

Integration no longer works #7

@ghost

Description

Hi, is there any chance this integration could be updated? Its stopped working, I think after AD changed the login method?

_**Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/autodarts/session.py", line 70, in refresh_token
self._token = await asyncio.to_thread(self.keycloak_openid.token,self.email, self.password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/asyncio/threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.13/site-packages/keycloak/keycloak_openid.py", line 375, in token
return raise_error_from_response(data_raw, KeycloakPostError)
File "/usr/local/lib/python3.13/site-packages/keycloak/exceptions.py", line 195, in raise_error_from_response
raise error(
...<3 lines>...
)
keycloak.exceptions.KeycloakAuthenticationError: 401: b'{"error":"invalid_client","error_description":"Invalid client or Invalid client credentials"}'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 637, in _async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/autodarts/init.py", line 108, in async_setup_entry
if not await session.is_authenticated():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/autodarts/session.py", line 98, in is_authenticated
token: dict = await self.token()
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/autodarts/session.py", line 86, in token
await self.refresh_token()
File "/usr/local/lib/python3.13/site-packages/autodarts/session.py", line 72, in refresh_token
raise AutoDartAuthenticationException("Authentication failed") from err
autodarts.session.AutoDartAuthenticationException: Authentication failed**

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