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

Classes

class  YoLinkSwitchEntity
 
class  YoLinkSwitchEntityDescription
 

Functions

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

Variables

list DEVICE_TYPE
 

Detailed Description

YoLink Switch.

Function Documentation

◆ async_setup_entry()

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

Definition at line 116 of file switch.py.

Variable Documentation

◆ DEVICE_TYPE

list homeassistant.components.yolink.switch.DEVICE_TYPE
Initial value:
1 = [
2  ATTR_DEVICE_MANIPULATOR,
3  ATTR_DEVICE_MULTI_OUTLET,
4  ATTR_DEVICE_OUTLET,
5  ATTR_DEVICE_SWITCH,
6 ]

Definition at line 108 of file switch.py.