String formatting and max line length - Part 3 (#84394)
This commit is contained in:
parent
30df9e7706
commit
baef267f33
88 changed files with 517 additions and 218 deletions
|
@ -249,13 +249,19 @@ class MqttSiren(MqttEntity, SirenEntity):
|
|||
try:
|
||||
json_payload = json_loads(payload)
|
||||
_LOGGER.debug(
|
||||
"JSON payload detected after processing payload '%s' on topic %s",
|
||||
(
|
||||
"JSON payload detected after processing payload '%s' on"
|
||||
" topic %s"
|
||||
),
|
||||
json_payload,
|
||||
msg.topic,
|
||||
)
|
||||
except JSON_DECODE_EXCEPTIONS:
|
||||
_LOGGER.warning(
|
||||
"No valid (JSON) payload detected after processing payload '%s' on topic %s",
|
||||
(
|
||||
"No valid (JSON) payload detected after processing payload"
|
||||
" '%s' on topic %s"
|
||||
),
|
||||
json_payload,
|
||||
msg.topic,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue