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

Classes

class  VeSyncBaseSwitch
 
class  VeSyncLightSwitch
 
class  VeSyncSwitchHA
 

Functions

def _setup_entities (devices, async_add_entities)
 
None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 

Detailed Description

Support for VeSync switches.

Function Documentation

◆ _setup_entities()

def homeassistant.components.vesync.switch._setup_entities (   devices,
  async_add_entities 
)
private
Check if device is online and add entity.

Definition at line 38 of file switch.py.

◆ async_setup_entry()

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

Definition at line 18 of file switch.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 15 of file switch.py.