mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 08:05:06 +02:00
Make Discord payload data key not required (#23964)
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user