Use literal string interpolation in integrations R-S (f-strings) (#26392)
This commit is contained in:
1 parent
7203027cbf
commit
445c741b30
69 files changed
+129
-149
No files matched your search
@@ -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