mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
moved imports to top level (#27682)
This commit is contained in:
parent
68a3c97464
commit
5938f5a3a1
@ -2,6 +2,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
|
import discord
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import CONF_TOKEN
|
from homeassistant.const import CONF_TOKEN
|
||||||
@ -44,7 +45,6 @@ class DiscordNotificationService(BaseNotificationService):
|
|||||||
|
|
||||||
async def async_send_message(self, message, **kwargs):
|
async def async_send_message(self, message, **kwargs):
|
||||||
"""Login to Discord, send message to channel(s) and log out."""
|
"""Login to Discord, send message to channel(s) and log out."""
|
||||||
import discord
|
|
||||||
|
|
||||||
discord.VoiceClient.warn_nacl = False
|
discord.VoiceClient.warn_nacl = False
|
||||||
discord_bot = discord.Client()
|
discord_bot = discord.Client()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user