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) |
Helper functions for webOS Smart TV.
| 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.
| 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.
| 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.
| list[str] homeassistant.components.webostv.helpers.async_get_sources | ( | str | host, |
| str | key | ||
| ) |
Construct sources list.
Definition at line 69 of file helpers.py.