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

Classes

class  CecSwitchEntity
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ENTITY_ID_FORMAT = SWITCH_DOMAIN + ".{}"
 

Detailed Description

Support for HDMI CEC devices as switches.

Function Documentation

◆ setup_platform()

None homeassistant.components.hdmi_cec.switch.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Find and return HDMI devices as switches.

Definition at line 23 of file switch.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.hdmi_cec.switch._LOGGER = logging.getLogger(__name__)
private

Definition at line 18 of file switch.py.

◆ ENTITY_ID_FORMAT

string homeassistant.components.hdmi_cec.switch.ENTITY_ID_FORMAT = SWITCH_DOMAIN + ".{}"

Definition at line 20 of file switch.py.