MULTI_CONF

This commit is contained in:
Otto Winter 2019-05-13 13:05:30 +02:00
parent 3e044db9f1
commit 9231b80aa9
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E
2 changed files with 2 additions and 0 deletions

View file

@ -11,6 +11,7 @@ ttp229_bsf_ns = cg.esphome_ns.namespace('ttp229_bsf')
TTP229BSFComponent = ttp229_bsf_ns.class_('TTP229BSFComponent', cg.Component) TTP229BSFComponent = ttp229_bsf_ns.class_('TTP229BSFComponent', cg.Component)
MULTI_CONF = True
CONFIG_SCHEMA = cv.Schema({ CONFIG_SCHEMA = cv.Schema({
cv.GenerateID(): cv.declare_id(TTP229BSFComponent), cv.GenerateID(): cv.declare_id(TTP229BSFComponent),
cv.Required(CONF_SDO_PIN): pins.gpio_input_pullup_pin_schema, cv.Required(CONF_SDO_PIN): pins.gpio_input_pullup_pin_schema,

View file

@ -11,6 +11,7 @@ ttp229_lsf_ns = cg.esphome_ns.namespace('ttp229_lsf')
TTP229LSFComponent = ttp229_lsf_ns.class_('TTP229LSFComponent', cg.Component, i2c.I2CDevice) TTP229LSFComponent = ttp229_lsf_ns.class_('TTP229LSFComponent', cg.Component, i2c.I2CDevice)
MULTI_CONF = True
CONFIG_SCHEMA = cv.Schema({ CONFIG_SCHEMA = cv.Schema({
cv.GenerateID(): cv.declare_id(TTP229LSFComponent), cv.GenerateID(): cv.declare_id(TTP229LSFComponent),
}).extend(cv.COMPONENT_SCHEMA).extend(i2c.i2c_device_schema(0x57)) }).extend(cv.COMPONENT_SCHEMA).extend(i2c.i2c_device_schema(0x57))