mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Bump nextcord to 2.6.0 (#110485)
This commit is contained in:
parent
06a21d4ed9
commit
dbca65dffb
@ -7,5 +7,5 @@
|
|||||||
"integration_type": "service",
|
"integration_type": "service",
|
||||||
"iot_class": "cloud_push",
|
"iot_class": "cloud_push",
|
||||||
"loggers": ["discord"],
|
"loggers": ["discord"],
|
||||||
"requirements": ["nextcord==2.0.0a8"]
|
"requirements": ["nextcord==2.6.0"]
|
||||||
}
|
}
|
||||||
|
@ -129,10 +129,10 @@ class DiscordNotificationService(BaseNotificationService):
|
|||||||
embeds: list[nextcord.Embed] = []
|
embeds: list[nextcord.Embed] = []
|
||||||
if ATTR_EMBED in data:
|
if ATTR_EMBED in data:
|
||||||
embedding = data[ATTR_EMBED]
|
embedding = data[ATTR_EMBED]
|
||||||
title = embedding.get(ATTR_EMBED_TITLE) or nextcord.Embed.Empty
|
title = embedding.get(ATTR_EMBED_TITLE)
|
||||||
description = embedding.get(ATTR_EMBED_DESCRIPTION) or nextcord.Embed.Empty
|
description = embedding.get(ATTR_EMBED_DESCRIPTION)
|
||||||
color = embedding.get(ATTR_EMBED_COLOR) or nextcord.Embed.Empty
|
color = embedding.get(ATTR_EMBED_COLOR)
|
||||||
url = embedding.get(ATTR_EMBED_URL) or nextcord.Embed.Empty
|
url = embedding.get(ATTR_EMBED_URL)
|
||||||
fields = embedding.get(ATTR_EMBED_FIELDS) or []
|
fields = embedding.get(ATTR_EMBED_FIELDS) or []
|
||||||
|
|
||||||
if embedding:
|
if embedding:
|
||||||
|
@ -1373,7 +1373,7 @@ nexia==2.0.8
|
|||||||
nextcloudmonitor==1.5.0
|
nextcloudmonitor==1.5.0
|
||||||
|
|
||||||
# homeassistant.components.discord
|
# homeassistant.components.discord
|
||||||
nextcord==2.0.0a8
|
nextcord==2.6.0
|
||||||
|
|
||||||
# homeassistant.components.nextdns
|
# homeassistant.components.nextdns
|
||||||
nextdns==2.1.0
|
nextdns==2.1.0
|
||||||
|
@ -1100,7 +1100,7 @@ nexia==2.0.8
|
|||||||
nextcloudmonitor==1.5.0
|
nextcloudmonitor==1.5.0
|
||||||
|
|
||||||
# homeassistant.components.discord
|
# homeassistant.components.discord
|
||||||
nextcord==2.0.0a8
|
nextcord==2.6.0
|
||||||
|
|
||||||
# homeassistant.components.nextdns
|
# homeassistant.components.nextdns
|
||||||
nextdns==2.1.0
|
nextdns==2.1.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user