mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix Spotify scopes validation for re-auth (#39638)
This commit is contained in:
parent
eb7742ea7c
commit
ed3e04b9ed
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user