Update __init__.py

This commit is contained in:
Daniël Koek 2024-01-31 17:27:49 +00:00
parent 78ba0b67ce
commit 853e199524

View file

@ -30,8 +30,8 @@ CONFIG_SCHEMA = cv.Schema({
async def to_code(config): async def to_code(config):
var = cg.new_Pvariable(config[CONF_ID]) var = cg.new_Pvariable(config[CONF_ID])
yield cg.register_component(var, config) await cg.register_component(var, config)
yield uart.register_uart_device(var, config) await uart.register_uart_device(var, config)
p = await cg.gpio_pin_expression(config[CONF_PIN_AUX]) p = await cg.gpio_pin_expression(config[CONF_PIN_AUX])
cg.add(var.set_pin_aux(p)) cg.add(var.set_pin_aux(p))