Remove None from dict.get(key, None) (#33794)

This commit is contained in:
springstan authored and GitHub committed 2020-04-07 21:06:05 +02:00
1 parent d54ee77375
commit 46bbe816f6
45 files changed
+104 -110

No files matched your search

+1 -1
View File
@@ -335,7 +335,7 @@ class HTML5PushCallbackView(HomeAssistantView):
def check_authorization_header(self, request):
"""Check the authorization header."""
auth = request.headers.get(AUTHORIZATION, None)
auth = request.headers.get(AUTHORIZATION)
if not auth:
return self.json_message(
"Authorization header is expected", status_code=HTTP_UNAUTHORIZED