Use literal string interpolation in integrations K-M (f-strings) (#26389)
This commit is contained in:
parent
ef0e9431b6
commit
7203027cbf
51 changed files with 104 additions and 121 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue