From b7c15d447441fe29e8f2abbee91cce8a48367aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sat, 26 Jun 2021 13:12:10 +0200 Subject: [PATCH] Fix deprecation warning in discord notifier (#52197) --- homeassistant/components/discord/notify.py | 1 - 1 file changed, 1 deletion(-) diff --git a/homeassistant/components/discord/notify.py b/homeassistant/components/discord/notify.py index dfc89a4cb7e..6d3dc704d83 100644 --- a/homeassistant/components/discord/notify.py +++ b/homeassistant/components/discord/notify.py @@ -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.