1
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:
Franck Nijhof 2021-04-08 18:02:29 +02:00 committed by GitHub
parent 94fc7b8aed
commit e475b6b9c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)