moved imports to top level (#27682)

This commit is contained in:
bouni
2019-10-15 10:06:29 +02:00
committed by Pascal Vizeli
parent 68a3c97464
commit 5938f5a3a1

View File

@@ -2,6 +2,7 @@
import logging
import os.path
import discord
import voluptuous as vol
from homeassistant.const import CONF_TOKEN
@@ -44,7 +45,6 @@ class DiscordNotificationService(BaseNotificationService):
async def async_send_message(self, message, **kwargs):
"""Login to Discord, send message to channel(s) and log out."""
import discord
discord.VoiceClient.warn_nacl = False
discord_bot = discord.Client()