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

Classes

class  FacebookNotificationService
 

Functions

FacebookNotificationService get_service (HomeAssistant hass, ConfigType config, DiscoveryInfoType|None discovery_info=None)
 
def log_error (response)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string BASE_URL = "https://graph.facebook.com/v2.6/me/messages"
 
string CONF_PAGE_ACCESS_TOKEN = "page_access_token"
 
 PLATFORM_SCHEMA
 

Detailed Description

Facebook platform for notify component.

Function Documentation

◆ get_service()

FacebookNotificationService homeassistant.components.facebook.notify.get_service ( HomeAssistant  hass,
ConfigType  config,
DiscoveryInfoType | None   discovery_info = None 
)
Get the Facebook notification service.

Definition at line 33 of file notify.py.

◆ log_error()

def homeassistant.components.facebook.notify.log_error (   response)
Log error message.

Definition at line 92 of file notify.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 23 of file notify.py.

◆ BASE_URL

string homeassistant.components.facebook.notify.BASE_URL = "https://graph.facebook.com/v2.6/me/messages"

Definition at line 26 of file notify.py.

◆ CONF_PAGE_ACCESS_TOKEN

string homeassistant.components.facebook.notify.CONF_PAGE_ACCESS_TOKEN = "page_access_token"

Definition at line 25 of file notify.py.

◆ PLATFORM_SCHEMA

homeassistant.components.facebook.notify.PLATFORM_SCHEMA
Initial value:
1 = NOTIFY_PLATFORM_SCHEMA.extend(
2  {vol.Required(CONF_PAGE_ACCESS_TOKEN): cv.string}
3 )

Definition at line 28 of file notify.py.