I have three dead versions of the NabuCasa SmartApp in my SmartThings instance that were left behind due to similar issues. There’s no way I’ve found to delete them in the old app, either.
Mine failed after attempting upgrade to 103.1. Restoring backup of working 103.0 (with wipe) did NOT fix the problem. The recently released 103.2 also does not fix the problem:
Error setting up entry Home for smartthings
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 192, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/smartthings/__init__.py", line 110, in async_setup_entry
entry.data[CONF_REFRESH_TOKEN],
File "/usr/local/lib/python3.7/site-packages/pysmartthings/smartthings.py", line 202, in generate_tokens
client_id, client_secret, refresh_token)
File "/usr/local/lib/python3.7/site-packages/pysmartthings/api.py", line 417, in generate_tokens
raise APIInvalidGrant(data.get('error_description'))
pysmartthings.errors.APIInvalidGrant: Invalid refresh token: bcc0f2ec-d5be-44f0-8a00-b8ce6738e5f5
Nabu support just email me:
"
Please use this removal tool to clean-up your ST account and then start over one nothing shows up in your account. You can run this tool anywhere under Python 3
"