Use literal string interpolation in integrations K-M (f-strings) (#26389)

This commit is contained in:
Franck Nijhof 2019-09-03 21:14:00 +02:00 committed by Pascal Vizeli
parent ef0e9431b6
commit 7203027cbf
51 changed files with 104 additions and 121 deletions

View file

@ -538,7 +538,7 @@ class KonnectedView(HomeAssistantView):
)
auth = request.headers.get(AUTHORIZATION, None)
if not hmac.compare_digest("Bearer {}".format(self.auth_token), auth):
if not hmac.compare_digest(f"Bearer {self.auth_token}", auth):
return self.json_message("unauthorized", status_code=HTTP_UNAUTHORIZED)
pin_num = int(pin_num)
device = data[CONF_DEVICES].get(device_id)