Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google_mail.services Namespace Reference

Functions

None async_setup_services (HomeAssistant hass)
 

Variables

string SERVICE_SET_VACATION = "set_vacation"
 
 SERVICE_VACATION_SCHEMA
 

Detailed Description

Services for Google Mail integration.

Function Documentation

◆ async_setup_services()

None homeassistant.components.google_mail.services.async_setup_services ( HomeAssistant  hass)
Set up services for Google Mail integration.

Definition at line 49 of file services.py.

Variable Documentation

◆ SERVICE_SET_VACATION

string homeassistant.components.google_mail.services.SERVICE_SET_VACATION = "set_vacation"

Definition at line 31 of file services.py.

◆ SERVICE_VACATION_SCHEMA

homeassistant.components.google_mail.services.SERVICE_VACATION_SCHEMA
Initial value:
1 = vol.All(
2  cv.make_entity_service_schema(
3  {
4  vol.Required(ATTR_ENABLED, default=True): cv.boolean,
5  vol.Optional(ATTR_TITLE): cv.string,
6  vol.Required(ATTR_MESSAGE): cv.string,
7  vol.Optional(ATTR_PLAIN_TEXT, default=True): cv.boolean,
8  vol.Optional(ATTR_RESTRICT_CONTACTS): cv.boolean,
9  vol.Optional(ATTR_RESTRICT_DOMAIN): cv.boolean,
10  vol.Optional(ATTR_START): cv.date,
11  vol.Optional(ATTR_END): cv.date,
12  },
13  )
14 )

Definition at line 33 of file services.py.