From 424b7657283c19412bbe995917ab76cf61c779f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Sat, 18 May 2024 16:25:18 +0100 Subject: [PATCH] Update switch.py --- esphome/components/ebyte_lora/switch.py | 1 - 1 file changed, 1 deletion(-) diff --git a/esphome/components/ebyte_lora/switch.py b/esphome/components/ebyte_lora/switch.py index 3d8b59f988..fceddedc38 100644 --- a/esphome/components/ebyte_lora/switch.py +++ b/esphome/components/ebyte_lora/switch.py @@ -24,6 +24,5 @@ async def to_code(config): ebyte_lora_component = await cg.get_variable(config[CONF_EBYTE_LORA_COMPONENT_ID]) var = await switch.new_switch(config) await cg.register_parented(var, config[CONF_EBYTE_LORA_COMPONENT_ID]) - await cg.register_component(var, config) cg.add(var.set_pin(config[PIN_TO_SEND])) cg.add(ebyte_lora_component.set_switch(var))