Fix Spotify scopes validation for re-auth (#39638)
This commit is contained in:
1 parent
eb7742ea7c
commit
ed3e04b9ed
1 file changed
+1
-1
@@ -80,7 +80,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
DATA_SPOTIFY_SESSION: session,
|
||||
}
|
||||
|
||||
if set(session.token["scope"].split(" ")) <= set(SPOTIFY_SCOPES):
|
||||
if not set(session.token["scope"].split(" ")).issuperset(SPOTIFY_SCOPES):
|
||||
hass.async_create_task(
|
||||
hass.config_entries.flow.async_init(
|
||||
DOMAIN,
|
||||
|
||||
Reference in new issue
Block a user