mirror of
https://github.com/esphome/esphome.git
synced 2025-01-07 13:21:44 +01:00
Update __init__.py
This commit is contained in:
parent
9f58bcf298
commit
ec477eb235
1 changed files with 3 additions and 6 deletions
|
@ -214,12 +214,9 @@ async def to_code(config):
|
|||
var = cg.new_Pvariable(config[CONF_ID])
|
||||
await cg.register_component(var, config)
|
||||
await uart.register_uart_device(var, config)
|
||||
pin_aux = await cg.gpio_pin_expression(config[CONF_PIN_AUX])
|
||||
cg.add(var.set_pin_aux(pin_aux))
|
||||
pin_m0 = await cg.gpio_pin_expression(config[CONF_PIN_M0])
|
||||
cg.add(var.set_pin_m0(pin_m0))
|
||||
pin_m1 = await cg.gpio_pin_expression(config[CONF_PIN_M1])
|
||||
cg.add(var.set_pin_m1(pin_m1))
|
||||
cg.add(var.set_pin_aux(await cg.gpio_pin_expression(config[CONF_PIN_AUX])))
|
||||
cg.add(var.set_pin_m0(await cg.gpio_pin_expression(config[CONF_PIN_M0])))
|
||||
cg.add(var.set_pin_m1(await cg.gpio_pin_expression(config[CONF_PIN_M1])))
|
||||
cg.add(var.set_repeater(config[CONF_REPEATER]))
|
||||
cg.add(var.set_network_id(config[CONF_NETWORK_ID]))
|
||||
cg.add(var.set_addh(config[CONF_ADDH]))
|
||||
|
|
Loading…
Reference in a new issue