Remove unnecessary string literal concatenations (#30360)

This commit is contained in:
Ville Skyttä authored and GitHub committed 2020-01-02 21:17:10 +02:00
1 parent cac750066a
commit e6388e186c
183 files changed
+362 -393

No files matched your search

+3 -3
View File
@@ -345,12 +345,12 @@ class HTML5PushCallbackView(HomeAssistantView):
if parts[0].lower() != "bearer":
return self.json_message(
"Authorization header must " "start with Bearer",
"Authorization header must start with Bearer",
status_code=HTTP_UNAUTHORIZED,
)
if len(parts) != 2:
return self.json_message(
"Authorization header must " "be Bearer token",
"Authorization header must be Bearer token",
status_code=HTTP_UNAUTHORIZED,
)
@@ -507,7 +507,7 @@ class HTML5NotificationService(BaseNotificationService):
info = REGISTER_SCHEMA(info)
except vol.Invalid:
_LOGGER.error(
"%s is not a valid HTML5 push notification" " target", target
"%s is not a valid HTML5 push notification target", target
)
continue
payload[ATTR_DATA][ATTR_JWT] = add_jwt(