From c2830b3e66af36f063dbd690e7bd9dcf9387182d Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 1 Dec 2021 08:26:02 +1300 Subject: [PATCH] Fix fields being None for discord notify service (#59736) Co-authored-by: Martin Hjelmare --- homeassistant/components/discord/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/discord/notify.py b/homeassistant/components/discord/notify.py index 16f30fbf051..c3f7de94af0 100644 --- a/homeassistant/components/discord/notify.py +++ b/homeassistant/components/discord/notify.py @@ -62,7 +62,7 @@ class DiscordNotificationService(BaseNotificationService): embed = None if ATTR_EMBED in data: embedding = data[ATTR_EMBED] - fields = embedding.get(ATTR_EMBED_FIELDS) + fields = embedding.get(ATTR_EMBED_FIELDS) or [] if embedding: embed = discord.Embed(**embedding)