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

Classes

class  TPLinkSwitch
 
class  TPLinkSwitchEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, TPLinkConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary SWITCH_DESCRIPTIONS_MAP = {desc.key: desc for desc in SWITCH_DESCRIPTIONS}
 

Detailed Description

Support for TPLink switch entities.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.tplink.switch.async_setup_entry ( HomeAssistant  hass,
TPLinkConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up switches.

Definition at line 62 of file switch.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 22 of file switch.py.

◆ SWITCH_DESCRIPTIONS_MAP

dictionary homeassistant.components.tplink.switch.SWITCH_DESCRIPTIONS_MAP = {desc.key: desc for desc in SWITCH_DESCRIPTIONS}

Definition at line 59 of file switch.py.