Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.dlna_dms.dms Namespace Reference

Classes

class  Action
 
class  ActionError
 
class  DeviceConnectionError
 
class  DidlPlayMedia
 
class  DlnaDmsData
 
class  DlnaDmsDeviceError
 
class  DmsDeviceSource
 

Functions

def _DlnaDmsDeviceMethod
 
str _esc_quote (str contents)
 
tuple[Action|None, str] _parse_identifier (str|None identifier)
 
bool _resource_is_streaming (didl_lite.Resource resource)
 
str|None _resource_mime_type (didl_lite.Resource resource)
 
DlnaDmsData get_domain_data (HomeAssistant hass)
 

Detailed Description

Wrapper for media_source around async_upnp_client's DmsDevice .

Function Documentation

◆ _DlnaDmsDeviceMethod()

def homeassistant.components.dlna_dms.dms._DlnaDmsDeviceMethod
private

Definition at line 127 of file dms.py.

◆ _esc_quote()

str homeassistant.components.dlna_dms.dms._esc_quote ( str  contents)
private
Escape string contents for DLNA search quoted values.

See ContentDirectory:v4, section 4.1.2.

Definition at line 685 of file dms.py.

◆ _parse_identifier()

tuple[Action | None, str] homeassistant.components.dlna_dms.dms._parse_identifier ( str | None  identifier)
private
Parse the media identifier component of a media-source URI.

Definition at line 649 of file dms.py.

◆ _resource_is_streaming()

bool homeassistant.components.dlna_dms.dms._resource_is_streaming ( didl_lite.Resource  resource)
private
Determine if a resource can be streamed across a network.

Definition at line 662 of file dms.py.

◆ _resource_mime_type()

str | None homeassistant.components.dlna_dms.dms._resource_mime_type ( didl_lite.Resource  resource)
private
Return the MIME type of a resource, if specified.

Definition at line 671 of file dms.py.

◆ get_domain_data()

DlnaDmsData homeassistant.components.dlna_dms.dms.get_domain_data ( HomeAssistant  hass)
Obtain this integration's domain data, creating it if needed.

Definition at line 93 of file dms.py.