mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +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
@@ -52,9 +52,7 @@ class CiscoWebexTeamsNotificationService(BaseNotificationService):
|
||||
title = "{}{}".format(kwargs.get(ATTR_TITLE), "<br>")
|
||||
|
||||
try:
|
||||
self.client.messages.create(
|
||||
roomId=self.room, html="{}{}".format(title, message)
|
||||
)
|
||||
self.client.messages.create(roomId=self.room, html=f"{title}{message}")
|
||||
except ApiError as api_error:
|
||||
_LOGGER.error(
|
||||
"Could not send CiscoWebexTeams notification. " "Error: %s", api_error
|
||||
|
||||
Reference in New Issue
Block a user