From b952cfe705c54f79d101ad425a1daa7dc7046271 Mon Sep 17 00:00:00 2001 From: Christiaan Blom Date: Fri, 10 Mar 2017 00:21:26 +0100 Subject: [PATCH] Added pylint ignore message and re-added .close() --- homeassistant/components/notify/discord.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/notify/discord.py b/homeassistant/components/notify/discord.py index 7e1a83cdcb4..e061492801b 100644 --- a/homeassistant/components/notify/discord.py +++ b/homeassistant/components/notify/discord.py @@ -44,11 +44,12 @@ class DiscordNotificationService(BaseNotificationService): @discord_bot.event @asyncio.coroutine - def on_ready(): + def on_ready(): # pylint: disable=unused-variable """Send the messages when the bot is ready.""" for channelid in kwargs[ATTR_TARGET]: channel = discord.Object(id=channelid) yield from discord_bot.send_message(channel, message) yield from discord_bot.logout() + yield from discord_bot.close() yield from discord_bot.start(self.token)