Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google_photos.media_source.PhotosIdentifier Class Reference

Public Member Functions

Self album (cls, str config_entry_id, str media_id)
 
str as_string (self)
 
Self of (cls, str identifier)
 
Self photo (cls, str config_entry_id, str media_id)
 

Static Public Attributes

 None
 

Detailed Description

Google Photos item identifier in a media source URL.

Definition at line 60 of file media_source.py.

Member Function Documentation

◆ album()

Self homeassistant.components.google_photos.media_source.PhotosIdentifier.album (   cls,
str  config_entry_id,
str  media_id 
)
Create an album PhotosIdentifier.

Definition at line 89 of file media_source.py.

◆ as_string()

str homeassistant.components.google_photos.media_source.PhotosIdentifier.as_string (   self)
Serialize the identifier as a string.

Definition at line 72 of file media_source.py.

◆ of()

Self homeassistant.components.google_photos.media_source.PhotosIdentifier.of (   cls,
str  identifier 
)
Parse a PhotosIdentifier form a string.

Definition at line 79 of file media_source.py.

◆ photo()

Self homeassistant.components.google_photos.media_source.PhotosIdentifier.photo (   cls,
str  config_entry_id,
str  media_id 
)
Create an album PhotosIdentifier.

Definition at line 94 of file media_source.py.

Member Data Documentation

◆ None

homeassistant.components.google_photos.media_source.PhotosIdentifier.None
static

Definition at line 66 of file media_source.py.


The documentation for this class was generated from the following file: