Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.discord.notify Namespace Reference

Classes

class  DiscordNotificationService
 

Functions

DiscordNotificationService|None async_get_service (HomeAssistant hass, ConfigType config, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_EMBED = "embed"
 
string ATTR_EMBED_AUTHOR = "author"
 
string ATTR_EMBED_COLOR = "color"
 
string ATTR_EMBED_DESCRIPTION = "description"
 
string ATTR_EMBED_FIELDS = "fields"
 
string ATTR_EMBED_FOOTER = "footer"
 
string ATTR_EMBED_IMAGE = "image"
 
string ATTR_EMBED_THUMBNAIL = "thumbnail"
 
string ATTR_EMBED_TITLE = "title"
 
string ATTR_EMBED_URL = "url"
 
string ATTR_IMAGES = "images"
 
string ATTR_URLS = "urls"
 
string ATTR_VERIFY_SSL = "verify_ssl"
 
int MAX_ALLOWED_DOWNLOAD_SIZE_BYTES = 8000000
 

Detailed Description

Discord platform for notify component.

Function Documentation

◆ async_get_service()

DiscordNotificationService | None homeassistant.components.discord.notify.async_get_service ( HomeAssistant  hass,
ConfigType  config,
DiscoveryInfoType | None   discovery_info = None 
)
Get the Discord notification service.

Definition at line 43 of file notify.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.discord.notify._LOGGER = logging.getLogger(__name__)
private

Definition at line 24 of file notify.py.

◆ ATTR_EMBED

string homeassistant.components.discord.notify.ATTR_EMBED = "embed"

Definition at line 26 of file notify.py.

◆ ATTR_EMBED_AUTHOR

string homeassistant.components.discord.notify.ATTR_EMBED_AUTHOR = "author"

Definition at line 27 of file notify.py.

◆ ATTR_EMBED_COLOR

string homeassistant.components.discord.notify.ATTR_EMBED_COLOR = "color"

Definition at line 28 of file notify.py.

◆ ATTR_EMBED_DESCRIPTION

string homeassistant.components.discord.notify.ATTR_EMBED_DESCRIPTION = "description"

Definition at line 29 of file notify.py.

◆ ATTR_EMBED_FIELDS

string homeassistant.components.discord.notify.ATTR_EMBED_FIELDS = "fields"

Definition at line 30 of file notify.py.

◆ ATTR_EMBED_FOOTER

string homeassistant.components.discord.notify.ATTR_EMBED_FOOTER = "footer"

Definition at line 31 of file notify.py.

◆ ATTR_EMBED_IMAGE

string homeassistant.components.discord.notify.ATTR_EMBED_IMAGE = "image"

Definition at line 34 of file notify.py.

◆ ATTR_EMBED_THUMBNAIL

string homeassistant.components.discord.notify.ATTR_EMBED_THUMBNAIL = "thumbnail"

Definition at line 33 of file notify.py.

◆ ATTR_EMBED_TITLE

string homeassistant.components.discord.notify.ATTR_EMBED_TITLE = "title"

Definition at line 32 of file notify.py.

◆ ATTR_EMBED_URL

string homeassistant.components.discord.notify.ATTR_EMBED_URL = "url"

Definition at line 35 of file notify.py.

◆ ATTR_IMAGES

string homeassistant.components.discord.notify.ATTR_IMAGES = "images"

Definition at line 36 of file notify.py.

◆ ATTR_URLS

string homeassistant.components.discord.notify.ATTR_URLS = "urls"

Definition at line 37 of file notify.py.

◆ ATTR_VERIFY_SSL

string homeassistant.components.discord.notify.ATTR_VERIFY_SSL = "verify_ssl"

Definition at line 38 of file notify.py.

◆ MAX_ALLOWED_DOWNLOAD_SIZE_BYTES

int homeassistant.components.discord.notify.MAX_ALLOWED_DOWNLOAD_SIZE_BYTES = 8000000

Definition at line 40 of file notify.py.