From 5938f5a3a1e6a2947e24269964660d5726314f6a Mon Sep 17 00:00:00 2001 From: bouni Date: Tue, 15 Oct 2019 10:06:29 +0200 Subject: [PATCH] moved imports to top level (#27682) --- homeassistant/components/discord/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/discord/notify.py b/homeassistant/components/discord/notify.py index 17ff0a192d0..f35cf5b0ce9 100644 --- a/homeassistant/components/discord/notify.py +++ b/homeassistant/components/discord/notify.py @@ -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()