From a444df3fdea41cb8be7e80a71c12832a830b501f Mon Sep 17 00:00:00 2001 From: Christiaan Blom Date: Sat, 4 Mar 2017 01:03:10 +0100 Subject: [PATCH] tweaks --- homeassistant/components/notify/discord.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/components/notify/discord.py b/homeassistant/components/notify/discord.py index fa8aa72cef3..07b595b3945 100644 --- a/homeassistant/components/notify/discord.py +++ b/homeassistant/components/notify/discord.py @@ -27,7 +27,6 @@ def get_service(hass, config, discovery_info=None): token = config.get(CONF_TOKEN) return DiscordNotificationService(hass, token) - class DiscordNotificationService(BaseNotificationService): """Implement the notification service for Discord.""" @@ -35,14 +34,13 @@ class DiscordNotificationService(BaseNotificationService): """Initialize the service.""" self.token = token self.hass = hass - self.loggedin = 0 @asyncio.coroutine def async_send_message(self, message, **kwargs): """Login to Discord, send message to channel(s) and log out.""" import discord discord_bot = discord.Client(loop=self.hass.loop) - + @discord_bot.event @asyncio.coroutine def on_ready():