moved imports to top level (#27682)
This commit is contained in:
parent
68a3c97464
commit
5938f5a3a1
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue