Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.plex.helpers Namespace Reference

Classes

class  PlexData
 

Functions

PlexData get_plex_data (HomeAssistant hass)
 
PlexServer get_plex_server (HomeAssistant hass, str server_id)
 
def pretty_title (media, short_name=False)
 

Detailed Description

Helper methods for common Plex integration operations.

Function Documentation

◆ get_plex_data()

PlexData homeassistant.components.plex.helpers.get_plex_data ( HomeAssistant  hass)
Get typed data from hass.data.

Definition at line 29 of file helpers.py.

◆ get_plex_server()

PlexServer homeassistant.components.plex.helpers.get_plex_server ( HomeAssistant  hass,
str  server_id 
)
Get Plex server from hass.data.

Definition at line 34 of file helpers.py.

◆ pretty_title()

def homeassistant.components.plex.helpers.pretty_title (   media,
  short_name = False 
)
Return a formatted title for the given media item.

Definition at line 39 of file helpers.py.