Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SmartThings "Failed to set up" after upgrade to Home Assistant 2023.6.1 #76

Open
Crepetsky opened this issue Jun 11, 2023 · 2 comments
Open

Comments

@Crepetsky
Copy link

The integration was working great prior. Now, it states "Failed to set up" on the integrations page.

`This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/smartthings/init.py:121
Integration: SmartThings
First occurred: 7:59:51 AM (2 occurrences)
Last logged: 8:00:58 AM

Error setting up entry Home for smartthings
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthings/init.py", line 121, in async_setup_entry
token = await api.generate_tokens(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pysmartthings/smartthings.py", line 209, in generate_tokens
result = await self._service.generate_tokens(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pysmartthings/api.py", line 424, in generate_tokens
raise APIInvalidGrant(data.get("error_description"))
pysmartthings.errors.APIInvalidGrant: Invalid refresh token: 6a2a79d1-89be-4aaa-8cd4-182b7e3c88eb requested by clientId: 60bd00ab-a2bc-44f2-b956-200f390786cb with grantType: refresh_token, e.cause: no cause
`

@cfurini
Copy link

cfurini commented Jun 19, 2023

I am having the same issue

@cfurini
Copy link

cfurini commented Jun 19, 2023

I just deleted and reinstalled the integration and it is back working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants