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

Classes

class  TwitterNotificationService
 

Functions

TwitterNotificationService get_service (HomeAssistant hass, ConfigType config, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_MEDIA = "media"
 
string CONF_ACCESS_TOKEN_SECRET = "access_token_secret"
 
string CONF_CONSUMER_KEY = "consumer_key"
 
string CONF_CONSUMER_SECRET = "consumer_secret"
 
 PLATFORM_SCHEMA
 

Detailed Description

Twitter platform for notify component.

Function Documentation

◆ get_service()

TwitterNotificationService homeassistant.components.twitter.notify.get_service ( HomeAssistant  hass,
ConfigType  config,
DiscoveryInfoType | None   discovery_info = None 
)
Get the Twitter notification service.

Definition at line 47 of file notify.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 28 of file notify.py.

◆ ATTR_MEDIA

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

Definition at line 34 of file notify.py.

◆ CONF_ACCESS_TOKEN_SECRET

string homeassistant.components.twitter.notify.CONF_ACCESS_TOKEN_SECRET = "access_token_secret"

Definition at line 32 of file notify.py.

◆ CONF_CONSUMER_KEY

string homeassistant.components.twitter.notify.CONF_CONSUMER_KEY = "consumer_key"

Definition at line 30 of file notify.py.

◆ CONF_CONSUMER_SECRET

string homeassistant.components.twitter.notify.CONF_CONSUMER_SECRET = "consumer_secret"

Definition at line 31 of file notify.py.

◆ PLATFORM_SCHEMA

homeassistant.components.twitter.notify.PLATFORM_SCHEMA
Initial value:
1 = NOTIFY_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_ACCESS_TOKEN): cv.string,
4  vol.Required(CONF_ACCESS_TOKEN_SECRET): cv.string,
5  vol.Required(CONF_CONSUMER_KEY): cv.string,
6  vol.Required(CONF_CONSUMER_SECRET): cv.string,
7  vol.Optional(CONF_USERNAME): cv.string,
8  }
9 )

Definition at line 36 of file notify.py.