mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
MULTI_CONF
This commit is contained in:
parent
3e044db9f1
commit
9231b80aa9
2 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,7 @@ ttp229_bsf_ns = cg.esphome_ns.namespace('ttp229_bsf')
|
|||
|
||||
TTP229BSFComponent = ttp229_bsf_ns.class_('TTP229BSFComponent', cg.Component)
|
||||
|
||||
MULTI_CONF = True
|
||||
CONFIG_SCHEMA = cv.Schema({
|
||||
cv.GenerateID(): cv.declare_id(TTP229BSFComponent),
|
||||
cv.Required(CONF_SDO_PIN): pins.gpio_input_pullup_pin_schema,
|
||||
|
|
|
@ -11,6 +11,7 @@ ttp229_lsf_ns = cg.esphome_ns.namespace('ttp229_lsf')
|
|||
|
||||
TTP229LSFComponent = ttp229_lsf_ns.class_('TTP229LSFComponent', cg.Component, i2c.I2CDevice)
|
||||
|
||||
MULTI_CONF = True
|
||||
CONFIG_SCHEMA = cv.Schema({
|
||||
cv.GenerateID(): cv.declare_id(TTP229LSFComponent),
|
||||
}).extend(cv.COMPONENT_SCHEMA).extend(i2c.i2c_device_schema(0x57))
|
||||
|
|
Loading…
Reference in a new issue