diff --git a/esphome/components/ebyte_lora_e220/__init__.py b/esphome/components/ebyte_lora_e220/__init__.py index bf4259961d..62178a8b6e 100644 --- a/esphome/components/ebyte_lora_e220/__init__.py +++ b/esphome/components/ebyte_lora_e220/__init__.py @@ -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))