Skip to content

Commit

Permalink
Merge 2f03235 into ddeeba2
Browse files Browse the repository at this point in the history
  • Loading branch information
sqldiablo committed Nov 11, 2018
2 parents ddeeba2 + 2f03235 commit d8f77a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions homeassistant/components/notify/discord.py
Expand Up @@ -41,6 +41,8 @@ def __init__(self, hass, token):
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(loop=self.hass.loop)

if ATTR_TARGET not in kwargs:
Expand All @@ -53,6 +55,7 @@ async def on_ready():
"""Send the messages when the bot is ready."""
try:
data = kwargs.get(ATTR_DATA)
images = None
if data:
images = data.get(ATTR_IMAGES)
for channelid in kwargs[ATTR_TARGET]:
Expand Down

0 comments on commit d8f77a3

Please sign in to comment.