Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.roku.select Namespace Reference

Classes

class  RokuSelectEntity
 
class  RokuSelectEntityDescription
 

Functions

str|None _get_application_name (RokuDevice device)
 
list[str] _get_applications (RokuDevice device)
 
str|None _get_channel_name (RokuDevice device)
 
list[str] _get_channels (RokuDevice device)
 
None _launch_application (RokuDevice device, Roku roku, str value)
 
None _tune_channel (RokuDevice device, Roku roku, str value)
 
None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 CHANNEL_ENTITY
 

Detailed Description

Support for Roku selects.

Function Documentation

◆ _get_application_name()

str | None homeassistant.components.roku.select._get_application_name ( RokuDevice  device)
private

Definition at line 22 of file select.py.

◆ _get_applications()

list[str] homeassistant.components.roku.select._get_applications ( RokuDevice  device)
private

Definition at line 32 of file select.py.

◆ _get_channel_name()

str | None homeassistant.components.roku.select._get_channel_name ( RokuDevice  device)
private

Definition at line 36 of file select.py.

◆ _get_channels()

list[str] homeassistant.components.roku.select._get_channels ( RokuDevice  device)
private

Definition at line 43 of file select.py.

◆ _launch_application()

None homeassistant.components.roku.select._launch_application ( RokuDevice  device,
Roku  roku,
str  value 
)
private

Definition at line 49 of file select.py.

◆ _tune_channel()

None homeassistant.components.roku.select._tune_channel ( RokuDevice  device,
Roku  roku,
str  value 
)
private

Definition at line 62 of file select.py.

◆ async_setup_entry()

None homeassistant.components.roku.select.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up Roku select based on a config entry.

Definition at line 109 of file select.py.

Variable Documentation

◆ CHANNEL_ENTITY

homeassistant.components.roku.select.CHANNEL_ENTITY
Initial value:
1 = RokuSelectEntityDescription(
2  key="channel",
3  translation_key="channel",
4  set_fn=_tune_channel,
5  value_fn=_get_channel_name,
6  options_fn=_get_channels,
7 )

Definition at line 100 of file select.py.