forked from home-assistant/core
Fix optional data payload in Prowl messaging service (#48868)
This commit is contained in:
committed by
Paulus Schoutsen
parent
02cd2619bb
commit
d9c1c391bc
@@ -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)
|
||||||
|
Reference in New Issue
Block a user