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

Classes

class  DemoLight
 

Functions

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

Variables

list LIGHT_COLORS = [(56, 86), (345, 75)]
 
list LIGHT_EFFECT_LIST = ["rainbow", "none"]
 
list LIGHT_TEMPS = [240, 380]
 
dictionary SUPPORT_DEMO = {ColorMode.HS, ColorMode.COLOR_TEMP}
 
dictionary SUPPORT_DEMO_HS_WHITE = {ColorMode.HS, ColorMode.WHITE}
 

Detailed Description

Demo light platform that implements lights.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.demo.light.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up the demo light platform.

Definition at line 37 of file light.py.

Variable Documentation

◆ LIGHT_COLORS

list homeassistant.components.demo.light.LIGHT_COLORS = [(56, 86), (345, 75)]

Definition at line 27 of file light.py.

◆ LIGHT_EFFECT_LIST

list homeassistant.components.demo.light.LIGHT_EFFECT_LIST = ["rainbow", "none"]

Definition at line 29 of file light.py.

◆ LIGHT_TEMPS

list homeassistant.components.demo.light.LIGHT_TEMPS = [240, 380]

Definition at line 31 of file light.py.

◆ SUPPORT_DEMO

dictionary homeassistant.components.demo.light.SUPPORT_DEMO = {ColorMode.HS, ColorMode.COLOR_TEMP}

Definition at line 33 of file light.py.

◆ SUPPORT_DEMO_HS_WHITE

dictionary homeassistant.components.demo.light.SUPPORT_DEMO_HS_WHITE = {ColorMode.HS, ColorMode.WHITE}

Definition at line 34 of file light.py.