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:
committed by
Pascal Vizeli
parent
105461edb5
commit
6a24d893c8
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user