mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Fix deprecation warning in discord notifier (#52197)
This commit is contained in:
parent
568e1b379d
commit
b7c15d4474
@ -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…
x
Reference in New Issue
Block a user