Fix Spotify scopes validation for re-auth (#39638)

This commit is contained in:
Franck Nijhof 2020-09-04 08:57:12 +02:00 committed by GitHub
parent eb7742ea7c
commit ed3e04b9ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
DATA_SPOTIFY_SESSION: session, 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.async_create_task(
hass.config_entries.flow.async_init( hass.config_entries.flow.async_init(
DOMAIN, DOMAIN,