mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Include subscriber information when MQTT message can't be decoded (#28062)
This commit is contained in:
parent
70ddab2f3c
commit
643257d911
@ -925,10 +925,11 @@ class MQTT:
|
||||
payload = msg.payload.decode(subscription.encoding)
|
||||
except (AttributeError, UnicodeDecodeError):
|
||||
_LOGGER.warning(
|
||||
"Can't decode payload %s on %s with encoding %s",
|
||||
"Can't decode payload %s on %s with encoding %s (for %s)",
|
||||
msg.payload,
|
||||
msg.topic,
|
||||
subscription.encoding,
|
||||
subscription.callback,
|
||||
)
|
||||
continue
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user