Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.hyperion.switch Namespace Reference

Classes

class  HyperionComponentSwitch
 

Functions

str _component_to_translation_key (str component)
 
str _component_to_unique_id (str server_id, str component, int instance_num)
 
None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

list COMPONENT_SWITCHES
 

Detailed Description

Switch platform for Hyperion.

Function Documentation

◆ _component_to_translation_key()

str homeassistant.components.hyperion.switch._component_to_translation_key ( str  component)
private

Definition at line 77 of file switch.py.

◆ _component_to_unique_id()

str homeassistant.components.hyperion.switch._component_to_unique_id ( str  server_id,
str  component,
int  instance_num 
)
private
Convert a component to a unique_id.

Definition at line 66 of file switch.py.

◆ async_setup_entry()

None homeassistant.components.hyperion.switch.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up a Hyperion platform from config entry.

Definition at line 90 of file switch.py.

Variable Documentation

◆ COMPONENT_SWITCHES

list homeassistant.components.hyperion.switch.COMPONENT_SWITCHES
Initial value:
1 = [
2  KEY_COMPONENTID_ALL,
3  KEY_COMPONENTID_SMOOTHING,
4  KEY_COMPONENTID_BLACKBORDER,
5  KEY_COMPONENTID_FORWARDER,
6  KEY_COMPONENTID_BOBLIGHTSERVER,
7  KEY_COMPONENTID_GRABBER,
8  KEY_COMPONENTID_LEDDEVICE,
9  KEY_COMPONENTID_V4L,
10 ]

Definition at line 54 of file switch.py.