From 33a05541a499db706ab567dce9612f3cfd443145 Mon Sep 17 00:00:00 2001 From: Anna Tikhomirova Date: Fri, 28 Aug 2020 20:36:59 +0300 Subject: [PATCH] Simplify mobile app debugging by adding sender device name (#38518) * Simplify mobile app debugging by adding sender device name. * Reformatted webhook.py with black --- homeassistant/components/mobile_app/webhook.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/mobile_app/webhook.py b/homeassistant/components/mobile_app/webhook.py index 01db11a04e3..9d614664a62 100644 --- a/homeassistant/components/mobile_app/webhook.py +++ b/homeassistant/components/mobile_app/webhook.py @@ -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.