mirror of
https://github.com/elisspace/core.git
synced 2026-09-29 05:49:53 +00:00
Use literal string interpolation in integrations R-S (f-strings) (#26392)
This commit is contained in:
committed by
Pascal Vizeli
parent
7203027cbf
commit
445c741b30
@@ -99,7 +99,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the Spotify platform."""
|
||||
import spotipy.oauth2
|
||||
|
||||
callback_url = "{}{}".format(hass.config.api.base_url, AUTH_CALLBACK_PATH)
|
||||
callback_url = f"{hass.config.api.base_url}{AUTH_CALLBACK_PATH}"
|
||||
cache = config.get(CONF_CACHE_PATH, hass.config.path(DEFAULT_CACHE_PATH))
|
||||
oauth = spotipy.oauth2.SpotifyOAuth(
|
||||
config.get(CONF_CLIENT_ID),
|
||||
|
||||
Reference in New Issue
Block a user