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

Functions

WebOsClient 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)
 
list[str] async_get_sources (str host, str key)
 

Detailed Description

Helper functions for webOS Smart TV.

Function Documentation

◆ async_get_client_by_device_entry()

WebOsClient homeassistant.components.webostv.helpers.async_get_client_by_device_entry ( HomeAssistant  hass,
DeviceEntry   device 
)
Get WebOsClient 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.webostv.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.webostv.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.

◆ async_get_sources()

list[str] homeassistant.components.webostv.helpers.async_get_sources ( str  host,
str  key 
)
Construct sources list.

Definition at line 69 of file helpers.py.