mirror of
https://github.com/esphome/esphome.git
synced 2024-12-29 00:41:44 +01:00
Update __init__.py
This commit is contained in:
parent
78ba0b67ce
commit
853e199524
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ CONFIG_SCHEMA = cv.Schema({
|
|||
|
||||
async def to_code(config):
|
||||
var = cg.new_Pvariable(config[CONF_ID])
|
||||
yield cg.register_component(var, config)
|
||||
yield uart.register_uart_device(var, config)
|
||||
await cg.register_component(var, config)
|
||||
await uart.register_uart_device(var, config)
|
||||
|
||||
p = await cg.gpio_pin_expression(config[CONF_PIN_AUX])
|
||||
cg.add(var.set_pin_aux(p))
|
||||
|
|
Loading…
Reference in a new issue