1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Use literal string interpolation in integrations B-D (f-strings) (#26378)

This commit is contained in:
Franck Nijhof
2019-09-03 17:09:59 +02:00
committed by Pascal Vizeli
parent 105461edb5
commit 6a24d893c8
52 changed files with 116 additions and 126 deletions

View File

@@ -79,7 +79,7 @@ class ClicksendNotificationService(BaseNotificationService):
}
]
}
api_url = "{}/voice/send".format(BASE_API_URL)
api_url = f"{BASE_API_URL}/voice/send"
resp = requests.post(
api_url,
data=json.dumps(data),
@@ -100,7 +100,7 @@ class ClicksendNotificationService(BaseNotificationService):
def _authenticate(config):
"""Authenticate with ClickSend."""
api_url = "{}/account".format(BASE_API_URL)
api_url = f"{BASE_API_URL}/account"
resp = requests.get(
api_url,
headers=HEADERS,