Fix deprecation warning in discord notifier (#52197)
This commit is contained in:
parent
568e1b379d
commit
b7c15d4474
1 changed files with 0 additions and 1 deletions
|
@ -112,7 +112,6 @@ class DiscordNotificationService(BaseNotificationService):
|
|||
await channel.send(message, files=files)
|
||||
except (discord.errors.HTTPException, discord.errors.NotFound) as error:
|
||||
_LOGGER.warning("Communication error: %s", error)
|
||||
await discord_bot.logout()
|
||||
await discord_bot.close()
|
||||
|
||||
# Using reconnect=False prevents multiple ready events to be fired.
|
||||
|
|
Loading…
Add table
Reference in a new issue