mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
tweaks
This commit is contained in:
parent
b038a1650e
commit
a444df3fde
@ -27,7 +27,6 @@ def get_service(hass, config, discovery_info=None):
|
|||||||
token = config.get(CONF_TOKEN)
|
token = config.get(CONF_TOKEN)
|
||||||
return DiscordNotificationService(hass, token)
|
return DiscordNotificationService(hass, token)
|
||||||
|
|
||||||
|
|
||||||
class DiscordNotificationService(BaseNotificationService):
|
class DiscordNotificationService(BaseNotificationService):
|
||||||
"""Implement the notification service for Discord."""
|
"""Implement the notification service for Discord."""
|
||||||
|
|
||||||
@ -35,7 +34,6 @@ class DiscordNotificationService(BaseNotificationService):
|
|||||||
"""Initialize the service."""
|
"""Initialize the service."""
|
||||||
self.token = token
|
self.token = token
|
||||||
self.hass = hass
|
self.hass = hass
|
||||||
self.loggedin = 0
|
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def async_send_message(self, message, **kwargs):
|
def async_send_message(self, message, **kwargs):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user