Fix ultrasonic typo Fixes #62

This commit is contained in:
Otto Winter 2018-06-06 07:09:03 +02:00
parent 16eeb3af31
commit 7264e3a4bf
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -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))