Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.decora_wifi.light Namespace Reference

Classes

class  DecoraWifiLight
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string NOTIFICATION_ID = "leviton_notification"
 
string NOTIFICATION_TITLE = "myLeviton Decora Setup"
 
 PLATFORM_SCHEMA
 

Detailed Description

Interfaces with the myLeviton API for Decora Smart WiFi products.

Function Documentation

◆ setup_platform()

None homeassistant.components.decora_wifi.light.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Decora WiFi platform.

Definition at line 40 of file light.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.decora_wifi.light._LOGGER = logging.getLogger(__name__)
private

Definition at line 29 of file light.py.

◆ NOTIFICATION_ID

string homeassistant.components.decora_wifi.light.NOTIFICATION_ID = "leviton_notification"

Definition at line 36 of file light.py.

◆ NOTIFICATION_TITLE

string homeassistant.components.decora_wifi.light.NOTIFICATION_TITLE = "myLeviton Decora Setup"

Definition at line 37 of file light.py.

◆ PLATFORM_SCHEMA

homeassistant.components.decora_wifi.light.PLATFORM_SCHEMA
Initial value:
1 = LIGHT_PLATFORM_SCHEMA.extend(
2  {vol.Required(CONF_USERNAME): cv.string, vol.Required(CONF_PASSWORD): cv.string}
3 )

Definition at line 32 of file light.py.