Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.light.Profile Class Reference

Public Member Functions

None __post_init__ (self)
 
Self from_csv_row (cls, list[str] csv_row)
 

Public Attributes

 hs_color
 

Static Public Attributes

 init
 
 None
 
 repr
 
 SCHEMA
 

Detailed Description

Representation of a profile.

The light profiles feature is in a frozen development state
until otherwise decided in an architecture discussion.

Definition at line 694 of file __init__.py.

Member Function Documentation

◆ __post_init__()

None homeassistant.components.light.Profile.__post_init__ (   self)
Convert xy to hs color.

Definition at line 730 of file __init__.py.

◆ from_csv_row()

Self homeassistant.components.light.Profile.from_csv_row (   cls,
list[str]  csv_row 
)
Create profile from a CSV row tuple.

Definition at line 741 of file __init__.py.

Member Data Documentation

◆ hs_color

homeassistant.components.light.Profile.hs_color

Definition at line 733 of file __init__.py.

◆ init

homeassistant.components.light.Profile.init
static

Definition at line 706 of file __init__.py.

◆ None

homeassistant.components.light.Profile.None
static

Definition at line 702 of file __init__.py.

◆ repr

homeassistant.components.light.Profile.repr
static

Definition at line 702 of file __init__.py.

◆ SCHEMA

homeassistant.components.light.Profile.SCHEMA
static
Initial value:
= vol.Schema(
vol.Any(
vol.ExactSequence(
(
str,
vol.Any(cv.small_float, _coerce_none),
vol.Any(cv.small_float, _coerce_none),
vol.Any(cv.byte, _coerce_none),
)
),
vol.ExactSequence(
(
str,
vol.Any(cv.small_float, _coerce_none),
vol.Any(cv.small_float, _coerce_none),
vol.Any(cv.byte, _coerce_none),
vol.Any(VALID_TRANSITION, _coerce_none),
)
),
)
)

Definition at line 708 of file __init__.py.


The documentation for this class was generated from the following file: