Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
home_io_control.light Namespace Reference

Functions

 _inject_companion_ids (config)
 _require_dimmable_kind (config)
 _validate (config)
 to_code (config)

Variables

list DEPENDENCIES = ["home_io_control"]
 IOHomeLight = home_io_control_ns.class_("IOHomeLight", light.LightOutput, cg.Component)
str CONF_DIMMABLE = "dimmable"
 CONFIG_SCHEMA

Function Documentation

◆ _inject_companion_ids()

_inject_companion_ids ( config)
protected

Definition at line 37 of file light.py.

◆ _require_dimmable_kind()

_require_dimmable_kind ( config)
protected
Reject `dimmable: true` on a declared light kind that is on/off only (subtype 58).

Definition at line 42 of file light.py.

◆ _validate()

_validate ( config)
protected

Definition at line 54 of file light.py.

◆ to_code()

to_code ( config)

Definition at line 83 of file light.py.

Variable Documentation

◆ CONF_DIMMABLE

str home_io_control.light.CONF_DIMMABLE = "dimmable"

Definition at line 34 of file light.py.

◆ CONFIG_SCHEMA

home_io_control.light.CONFIG_SCHEMA
Initial value:
= cv.All(
_validate,
validate_device_model,
_require_dimmable_kind,
warn_if_experimental_kind,
_inject_companion_ids,
)

Definition at line 74 of file light.py.

◆ DEPENDENCIES

list home_io_control.light.DEPENDENCIES = ["home_io_control"]

Definition at line 28 of file light.py.

◆ IOHomeLight

home_io_control.light.IOHomeLight = home_io_control_ns.class_("IOHomeLight", light.LightOutput, cg.Component)

Definition at line 30 of file light.py.