Skip to content

Commit 742f1b2

Browse files
authored
PushSafer: Handle empty data section properly (home-assistant#154109)
1 parent 681eb6b commit 742f1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

homeassistant/components/pushsafer/notify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def send_message(self, message="", **kwargs):
8888
_LOGGER.debug("%s target(s) specified", len(targets))
8989

9090
title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)
91-
data = kwargs.get(ATTR_DATA, {})
91+
data = kwargs.get(ATTR_DATA) or {}
9292

9393
# Converting the specified image to base64
9494
picture1 = data.get(ATTR_PICTURE1)

0 commit comments

Comments
 (0)