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

Functions

 _inject_companion_ids (config)
 to_code (config)

Variables

list DEPENDENCIES = ["home_io_control"]
 IOHomeSwitch = home_io_control_ns.class_("IOHomeSwitch", switch.Switch, cg.Component)
 CONFIG_SCHEMA

Function Documentation

◆ _inject_companion_ids()

home_io_control.switch._inject_companion_ids ( config)
protected

Definition at line 30 of file switch.py.

◆ to_code()

home_io_control.switch.to_code ( config)

Definition at line 44 of file switch.py.

Variable Documentation

◆ CONFIG_SCHEMA

home_io_control.switch.CONFIG_SCHEMA
Initial value:
1= cv.All(
2 # Switches are exposed as binary entities; a richer state model needs real-device evidence
3 # before it should be surfaced in the YAML schema.
4 switch.switch_schema(IOHomeSwitch)
5 .extend(platform_schema_extension())
6 .extend(cv.COMPONENT_SCHEMA),
7 _inject_companion_ids,
8)

Definition at line 34 of file switch.py.

◆ DEPENDENCIES

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

Definition at line 25 of file switch.py.

◆ IOHomeSwitch

home_io_control.switch.IOHomeSwitch = home_io_control_ns.class_("IOHomeSwitch", switch.Switch, cg.Component)

Definition at line 27 of file switch.py.