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

Classes

class  SendgridNotificationService
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_SENDER_NAME = "sender_name"
 
string DEFAULT_SENDER_NAME = "Home Assistant"
 
 PLATFORM_SCHEMA
 

Detailed Description

SendGrid notification service.

Function Documentation

◆ get_service()

SendgridNotificationService homeassistant.components.sendgrid.notify.get_service ( HomeAssistant  hass,
ConfigType  config,
DiscoveryInfoType | None   discovery_info = None 
)
Get the SendGrid notification service.

Definition at line 43 of file notify.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 27 of file notify.py.

◆ CONF_SENDER_NAME

string homeassistant.components.sendgrid.notify.CONF_SENDER_NAME = "sender_name"

Definition at line 29 of file notify.py.

◆ DEFAULT_SENDER_NAME

string homeassistant.components.sendgrid.notify.DEFAULT_SENDER_NAME = "Home Assistant"

Definition at line 31 of file notify.py.

◆ PLATFORM_SCHEMA

homeassistant.components.sendgrid.notify.PLATFORM_SCHEMA
Initial value:
1 = NOTIFY_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_API_KEY): cv.string,
4  vol.Required(CONF_SENDER): vol.Email(),
5  vol.Required(CONF_RECIPIENT): vol.Email(),
6  vol.Optional(CONF_SENDER_NAME, default=DEFAULT_SENDER_NAME): cv.string,
7  }
8 )

Definition at line 33 of file notify.py.