1 """Support for Velbus select."""
3 from velbusaio.channels
import SelectedProgram
11 from .const
import DOMAIN
12 from .entity
import VelbusEntity, api_call
18 async_add_entities: AddEntitiesCallback,
20 """Set up Velbus select based on config_entry."""
21 await hass.data[DOMAIN][entry.entry_id][
"tsk"]
22 cntrl = hass.data[DOMAIN][entry.entry_id][
"cntrl"]
27 """Representation of a select option for velbus."""
29 _channel: SelectedProgram
30 _attr_entity_category = EntityCategory.CONFIG
34 channel: SelectedProgram,
36 """Initialize a select Velbus entity."""
43 """Update the program on the module."""
44 await self.
_channel_channel.set_selected_program(option)
48 """Return the selected option."""
49 return self.
_channel_channel.get_selected_program()
None async_select_option(self, str option)
None __init__(self, SelectedProgram channel)
list[dict[str, Any]] get_options(list[dict[str, Any]] feeds)
None async_setup_entry(HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)