mirror of
https://github.com/esphome/esphome.git
synced 2024-12-24 22:44:54 +01:00
Ultrasonic sensor echo must be internal
This commit is contained in:
parent
61b3ead2df
commit
b9b09a1763
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ from esphomeyaml.helpers import App, add, variable, gpio_output_pin_expression,
|
|||
PLATFORM_SCHEMA = sensor.PLATFORM_SCHEMA.extend({
|
||||
cv.GenerateID('ultrasonic'): cv.register_variable_id,
|
||||
vol.Required(CONF_TRIGGER_PIN): pins.GPIO_OUTPUT_PIN_SCHEMA,
|
||||
vol.Required(CONF_ECHO_PIN): pins.GPIO_INPUT_PIN_SCHEMA,
|
||||
vol.Required(CONF_ECHO_PIN): pins.GPIO_INTERNAL_INPUT_PIN_SCHEMA,
|
||||
vol.Exclusive(CONF_TIMEOUT_METER, 'timeout'): cv.positive_float,
|
||||
vol.Exclusive(CONF_TIMEOUT_TIME, 'timeout'): cv.positive_time_period_microseconds,
|
||||
vol.Optional(CONF_UPDATE_INTERVAL): cv.positive_time_period_milliseconds,
|
||||
|
|
Loading…
Reference in a new issue