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

Functions

SamsungTVBridge async_get_client_by_device_entry (HomeAssistant hass, DeviceEntry device)
 
DeviceEntry async_get_device_entry_by_device_id (HomeAssistant hass, str device_id)
 
str async_get_device_id_from_entity_id (HomeAssistant hass, str entity_id)
 

Detailed Description

Helper functions for Samsung TV.

Function Documentation

◆ async_get_client_by_device_entry()

SamsungTVBridge homeassistant.components.samsungtv.helpers.async_get_client_by_device_entry ( HomeAssistant  hass,
DeviceEntry   device 
)
Get SamsungTVBridge from Device Registry by device entry.

Raises ValueError if client is not found.

Definition at line 50 of file helpers.py.

◆ async_get_device_entry_by_device_id()

DeviceEntry homeassistant.components.samsungtv.helpers.async_get_device_entry_by_device_id ( HomeAssistant  hass,
str   device_id 
)
Get Device Entry from Device Registry by device ID.

Raises ValueError if device ID is invalid.

Definition at line 16 of file helpers.py.

◆ async_get_device_id_from_entity_id()

str homeassistant.components.samsungtv.helpers.async_get_device_id_from_entity_id ( HomeAssistant  hass,
str  entity_id 
)
Get device ID from an entity ID.

Raises ValueError if entity or device ID is invalid.

Definition at line 31 of file helpers.py.