From 7264e3a4bf2f5352e2a4f88eeb6f7453ece05f25 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Wed, 6 Jun 2018 07:09:03 +0200 Subject: [PATCH] Fix ultrasonic typo Fixes #62 --- esphomeyaml/components/sensor/ultrasonic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphomeyaml/components/sensor/ultrasonic.py b/esphomeyaml/components/sensor/ultrasonic.py index a43f0d27ab..5303b6fdab 100644 --- a/esphomeyaml/components/sensor/ultrasonic.py +++ b/esphomeyaml/components/sensor/ultrasonic.py @@ -25,7 +25,7 @@ def to_code(config): for trigger in gpio_output_pin_expression(config[CONF_TRIGGER_PIN]): yield echo = None - for trigger in gpio_input_pin_expression(config[CONF_ECHO_PIN]): + for echo in gpio_input_pin_expression(config[CONF_ECHO_PIN]): yield rhs = App.make_ultrasonic_sensor(config[CONF_NAME], trigger, echo, config.get(CONF_UPDATE_INTERVAL))