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

Classes

class  MastodonNotificationService
 

Functions

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

Variables

string ATTR_CONTENT_WARNING = "content_warning"
 
string ATTR_MEDIA = "media"
 
string ATTR_MEDIA_WARNING = "media_warning"
 
string ATTR_TARGET = "target"
 
string INTEGRATION_TITLE = "Mastodon"
 
 PLATFORM_SCHEMA
 

Detailed Description

Mastodon platform for notify component.

Function Documentation

◆ async_get_service()

MastodonNotificationService | None homeassistant.components.mastodon.notify.async_get_service ( HomeAssistant  hass,
ConfigType  config,
DiscoveryInfoType | None   discovery_info = None 
)
Get the Mastodon notification service.

Definition at line 43 of file notify.py.

Variable Documentation

◆ ATTR_CONTENT_WARNING

string homeassistant.components.mastodon.notify.ATTR_CONTENT_WARNING = "content_warning"

Definition at line 29 of file notify.py.

◆ ATTR_MEDIA

string homeassistant.components.mastodon.notify.ATTR_MEDIA = "media"

Definition at line 26 of file notify.py.

◆ ATTR_MEDIA_WARNING

string homeassistant.components.mastodon.notify.ATTR_MEDIA_WARNING = "media_warning"

Definition at line 28 of file notify.py.

◆ ATTR_TARGET

string homeassistant.components.mastodon.notify.ATTR_TARGET = "target"

Definition at line 27 of file notify.py.

◆ INTEGRATION_TITLE

string homeassistant.components.mastodon.notify.INTEGRATION_TITLE = "Mastodon"

Definition at line 40 of file notify.py.

◆ PLATFORM_SCHEMA

homeassistant.components.mastodon.notify.PLATFORM_SCHEMA
Initial value:
1 = NOTIFY_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_ACCESS_TOKEN): cv.string,
4  vol.Required(CONF_CLIENT_ID): cv.string,
5  vol.Required(CONF_CLIENT_SECRET): cv.string,
6  vol.Optional(CONF_BASE_URL, default=DEFAULT_URL): cv.string,
7  }
8 )

Definition at line 31 of file notify.py.