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

Functions

list[tuple[str, bytes]] _read_file_contents (HomeAssistant hass, list[str] filenames)
 
None async_register_services (HomeAssistant hass)
 

Variables

string CONF_ALBUM = "album"
 
string CONF_CONFIG_ENTRY_ID = "config_entry_id"
 
int CONTENT_SIZE_LIMIT = 20 * 1024 * 1024
 
string UPLOAD_SERVICE = "upload"
 
 UPLOAD_SERVICE_SCHEMA
 

Detailed Description

Google Photos services.

Function Documentation

◆ _read_file_contents()

list[tuple[str, bytes]] homeassistant.components.google_photos.services._read_file_contents ( HomeAssistant  hass,
list[str]   filenames 
)
private
Return the mime types and file contents for each file.

Definition at line 40 of file services.py.

◆ async_register_services()

None homeassistant.components.google_photos.services.async_register_services ( HomeAssistant  hass)
Register Google Photos services.

Definition at line 80 of file services.py.

Variable Documentation

◆ CONF_ALBUM

string homeassistant.components.google_photos.services.CONF_ALBUM = "album"

Definition at line 27 of file services.py.

◆ CONF_CONFIG_ENTRY_ID

string homeassistant.components.google_photos.services.CONF_CONFIG_ENTRY_ID = "config_entry_id"

Definition at line 26 of file services.py.

◆ CONTENT_SIZE_LIMIT

int homeassistant.components.google_photos.services.CONTENT_SIZE_LIMIT = 20 * 1024 * 1024

Definition at line 37 of file services.py.

◆ UPLOAD_SERVICE

string homeassistant.components.google_photos.services.UPLOAD_SERVICE = "upload"

Definition at line 29 of file services.py.

◆ UPLOAD_SERVICE_SCHEMA

homeassistant.components.google_photos.services.UPLOAD_SERVICE_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_CONFIG_ENTRY_ID): cv.string,
4  vol.Required(CONF_FILENAME): vol.All(cv.ensure_list, [cv.string]),
5  vol.Required(CONF_ALBUM): cv.string,
6  }
7 )

Definition at line 30 of file services.py.