mirror of
https://github.com/home-assistant/core
synced 2024-08-02 23:40:32 +02: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,
|
||||
"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"]
|
||||
|
||||
_LOGGER.debug("Attempting call Prowl service at %s", url)
|
||||
|
Loading…
Reference in New Issue
Block a user