Skip to content

Failed to set up after 2023.12.0 #11

@Bastian007

Description

@Bastian007

After HA update 2023.12.0 a "Failed to set up" error is shown for the custom component gtasks-ha:
image

The error log shows this message:
User credential refresh is only supported in the default googleapis.com universe domain, but the current universe domain is None. If you created the credential with an access token, it's likely that the provided token is expired now, please update your code with a valid token.

Version of the custom_component

v0.6.1

Error log

`This error originated from a custom integration.

Logger: custom_components.gtasks
Source: custom_components/gtasks/init.py:135
Integration: GTasks (documentation)
First occurred: 08:50:18 (1 occurrences)
Last logged: 08:50:18

User credential refresh is only supported in the default googleapis.com universe domain, but the current universe domain is None. If you created the credential with an access token, it's likely that the provided token is expired now, please update your code with a valid token.
Traceback (most recent call last):
File "/config/custom_components/gtasks/init.py", line 135, in async_setup_entry
gapi = await hass.async_add_executor_job(GtasksAPI, creds, token_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/gtasks/gtasks_api.py", line 25, in init
self._connect()
File "/config/custom_components/gtasks/gtasks_api.py", line 41, in _connect
self._creds.refresh(Request())
File "/usr/local/lib/python3.11/site-packages/google/oauth2/credentials.py", line 338, in refresh
raise exceptions.RefreshError(
google.auth.exceptions.RefreshError: User credential refresh is only supported in the default googleapis.com universe domain, but the current universe domain is None. If you created the credential with an access token, it's likely that the provided token is expired now, please update your code with a valid token.
`

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