* Add black

Update pre commit

Update pre commit

add empty line

* Format with black
This commit is contained in:
Guillermo Ruffino
2021-03-07 16:03:16 -03:00
committed by GitHub
parent 2b60b0f1fa
commit 69879920eb
398 changed files with 21624 additions and 12644 deletions
+12 -10
View File
@@ -3,20 +3,22 @@ import esphome.config_validation as cv
from esphome import pins
from esphome.const import CONF_ID, CONF_SDO_PIN, CONF_SCL_PIN
DEPENDENCIES = ['i2c']
AUTO_LOAD = ['binary_sensor']
DEPENDENCIES = ["i2c"]
AUTO_LOAD = ["binary_sensor"]
CONF_TTP229_ID = 'ttp229_id'
ttp229_bsf_ns = cg.esphome_ns.namespace('ttp229_bsf')
CONF_TTP229_ID = "ttp229_id"
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({
cv.GenerateID(): cv.declare_id(TTP229BSFComponent),
cv.Required(CONF_SDO_PIN): pins.gpio_input_pullup_pin_schema,
cv.Required(CONF_SCL_PIN): pins.gpio_output_pin_schema,
}).extend(cv.COMPONENT_SCHEMA)
CONFIG_SCHEMA = cv.Schema(
{
cv.GenerateID(): cv.declare_id(TTP229BSFComponent),
cv.Required(CONF_SDO_PIN): pins.gpio_input_pullup_pin_schema,
cv.Required(CONF_SCL_PIN): pins.gpio_output_pin_schema,
}
).extend(cv.COMPONENT_SCHEMA)
def to_code(config):