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()