mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Simplify mobile app debugging by adding sender device name (#38518)
* Simplify mobile app debugging by adding sender device name. * Reformatted webhook.py with black
This commit is contained in:
parent
3377f6b12a
commit
33a05541a4
@ -184,8 +184,13 @@ async def handle_webhook(
|
||||
_LOGGER.error("Received invalid webhook type: %s", webhook_type)
|
||||
return empty_okay_response()
|
||||
|
||||
device_name = config_entry.data[ATTR_DEVICE_NAME]
|
||||
|
||||
_LOGGER.debug(
|
||||
"Received webhook payload for type %s: %s", webhook_type, webhook_payload
|
||||
"Received webhook payload from %s for type %s: %s",
|
||||
device_name,
|
||||
webhook_type,
|
||||
webhook_payload,
|
||||
)
|
||||
|
||||
# Shield so we make sure we finish the webhook, even if sender hangs up.
|
||||
|
Loading…
x
Reference in New Issue
Block a user