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) |
Helper functions for Samsung TV.
| 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.
| 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.
| 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.