From dbca65dffb96437524c40b575e27d56333d39481 Mon Sep 17 00:00:00 2001 From: Robert Hillis Date: Thu, 15 Feb 2024 14:33:07 -0500 Subject: [PATCH] Bump nextcord to 2.6.0 (#110485) --- homeassistant/components/discord/manifest.json | 2 +- homeassistant/components/discord/notify.py | 8 ++++---- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/discord/manifest.json b/homeassistant/components/discord/manifest.json index 1b53ba83cee..5f1ba2a13ef 100644 --- a/homeassistant/components/discord/manifest.json +++ b/homeassistant/components/discord/manifest.json @@ -7,5 +7,5 @@ "integration_type": "service", "iot_class": "cloud_push", "loggers": ["discord"], - "requirements": ["nextcord==2.0.0a8"] + "requirements": ["nextcord==2.6.0"] } diff --git a/homeassistant/components/discord/notify.py b/homeassistant/components/discord/notify.py index 43301290490..ff83d97f8c2 100644 --- a/homeassistant/components/discord/notify.py +++ b/homeassistant/components/discord/notify.py @@ -129,10 +129,10 @@ class DiscordNotificationService(BaseNotificationService): embeds: list[nextcord.Embed] = [] if ATTR_EMBED in data: embedding = data[ATTR_EMBED] - title = embedding.get(ATTR_EMBED_TITLE) or nextcord.Embed.Empty - description = embedding.get(ATTR_EMBED_DESCRIPTION) or nextcord.Embed.Empty - color = embedding.get(ATTR_EMBED_COLOR) or nextcord.Embed.Empty - url = embedding.get(ATTR_EMBED_URL) or nextcord.Embed.Empty + title = embedding.get(ATTR_EMBED_TITLE) + description = embedding.get(ATTR_EMBED_DESCRIPTION) + color = embedding.get(ATTR_EMBED_COLOR) + url = embedding.get(ATTR_EMBED_URL) fields = embedding.get(ATTR_EMBED_FIELDS) or [] if embedding: diff --git a/requirements_all.txt b/requirements_all.txt index b0b71f7c853..c871e677c1c 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1373,7 +1373,7 @@ nexia==2.0.8 nextcloudmonitor==1.5.0 # homeassistant.components.discord -nextcord==2.0.0a8 +nextcord==2.6.0 # homeassistant.components.nextdns nextdns==2.1.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 00fdfbe557e..59237c68cfb 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1100,7 +1100,7 @@ nexia==2.0.8 nextcloudmonitor==1.5.0 # homeassistant.components.discord -nextcord==2.0.0a8 +nextcord==2.6.0 # homeassistant.components.nextdns nextdns==2.1.0