moved imports to top level (#27682)
This commit is contained in:
1 parent
68a3c97464
commit
5938f5a3a1
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user