mirror of
https://github.com/esphome/esphome.git
synced 2025-06-18 14:25:48 +01:00
Add internal modifier. Fixes ottowinter/esphomelib#77
This commit is contained in:
esphomeyaml
__main__.pyconfig.pyconfig_validation.pyconst.pycore.py
components
binary_sensor
cover
fan
i2c.pyir_transmitter.pylight
logger.pyoutput
remote_receiver.pyremote_transmitter.pysensor
__init__.pyadc.pyads1115.pybh1750.pybme280.pybme680.pybmp085.pydallas.pydht.pydht12.pyduty_cycle.pyesp32_hall.pyhdc1080.pyhtu21d.pymax6675.pympu6050.pypulse_counter.pyrotary_encoder.pysht3xd.pytemplate.pytsl2561.pyultrasonic.pywifi_signal.py
switch
wifi.py@ -34,11 +34,11 @@ def validate_touch_pad(value):
|
||||
return value
|
||||
|
||||
|
||||
PLATFORM_SCHEMA = binary_sensor.PLATFORM_SCHEMA.extend({
|
||||
PLATFORM_SCHEMA = cv.nameable(binary_sensor.BINARY_SENSOR_PLATFORM_SCHEMA.extend({
|
||||
vol.Required(CONF_PIN): validate_touch_pad,
|
||||
vol.Required(CONF_THRESHOLD): cv.uint16_t,
|
||||
cv.GenerateID(CONF_ESP32_TOUCH_ID): cv.use_variable_id(ESP32TouchComponent),
|
||||
}).extend(binary_sensor.BINARY_SENSOR_SCHEMA.schema)
|
||||
}))
|
||||
|
||||
|
||||
def to_code(config):
|
||||
|
Reference in New Issue
Block a user