English please!!!
If I delete the Spotify integration… and then reinstall it… it works just fine. But after a while it becomes inoperable…
I think this is an authentication error… what say you?
021-07-26 16:30:24 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 1214919525 for spotify
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/spotify/__init__.py", line 70, in async_setup_entry
await session.async_ensure_token_valid()
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 464, in async_ensure_token_valid
new_token = await self.implementation.async_refresh_token(self.token)
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 88, in async_refresh_token
new_token = await self._async_refresh_token(token)
File "/usr/src/homeassistant/homeassistant/components/cloud/account_link.py", line 147, in _async_refresh_token
self.hass.data[DOMAIN], self.service, token["refresh_token"]
KeyError: 'refresh_token'