mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Fix optional data payload in Prowl messaging service (#48868)
This commit is contained in:
parent
94fc7b8aed
commit
e475b6b9c3
@ -48,7 +48,7 @@ class ProwlNotificationService(BaseNotificationService):
|
|||||||
"description": message,
|
"description": message,
|
||||||
"priority": data["priority"] if data and "priority" in data else 0,
|
"priority": data["priority"] if data and "priority" in data else 0,
|
||||||
}
|
}
|
||||||
if data.get("url"):
|
if data and data.get("url"):
|
||||||
payload["url"] = data["url"]
|
payload["url"] = data["url"]
|
||||||
|
|
||||||
_LOGGER.debug("Attempting call Prowl service at %s", url)
|
_LOGGER.debug("Attempting call Prowl service at %s", url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user