mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Make Discord payload data key not required (#23964)
This commit is contained in:
parent
4583638b92
commit
a99e15343c
@ -53,8 +53,7 @@ class DiscordNotificationService(BaseNotificationService):
|
||||
_LOGGER.error("No target specified")
|
||||
return None
|
||||
|
||||
if ATTR_DATA in kwargs:
|
||||
data = kwargs.get(ATTR_DATA)
|
||||
data = kwargs.get(ATTR_DATA) or {}
|
||||
|
||||
if ATTR_IMAGES in data:
|
||||
images = list()
|
||||
|
Loading…
x
Reference in New Issue
Block a user