Skip to content

Commit 93cb73d

Browse files
author
LAB02 Research
committed
Image null fix
1 parent bbeab8b commit 93cb73d

File tree

1 file changed

+3
-0
lines changed
  • custom_components/hass_agent_notifier

1 file changed

+3
-0
lines changed

custom_components/hass_agent_notifier/notify.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ async def async_send_message(self, message: str, **kwargs: Any):
7474
title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)
7575
data = kwargs.get(ATTR_DATA, None)
7676

77+
if data is None:
78+
data = dict()
79+
7780
image = data.get("image", None)
7881

7982
if image is not None:

0 commit comments

Comments
 (0)