diff --git a/esphome/components/ebyte_lora/__init__.py b/esphome/components/ebyte_lora/__init__.py index 502c6b6e98..06a1cd840b 100644 --- a/esphome/components/ebyte_lora/__init__.py +++ b/esphome/components/ebyte_lora/__init__.py @@ -14,6 +14,7 @@ from esphome.const import ( CODEOWNERS = ["@danielkoek"] DEPENDENCIES = ["uart"] AUTO_LOAD = ["uart", "sensor", "text_sensor"] +MULTI_CONF = True ebyte_lora_ns = cg.esphome_ns.namespace("ebyte_lora") EbyteLoraComponent = ebyte_lora_ns.class_( diff --git a/esphome/components/ebyte_lora/switch.py b/esphome/components/ebyte_lora/switch.py index b387a0cb0f..cb50a36d76 100644 --- a/esphome/components/ebyte_lora/switch.py +++ b/esphome/components/ebyte_lora/switch.py @@ -1,8 +1,10 @@ import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import switch -from .. import EbyteLoraComponent, CONF_EBYTE_LORA, ebyte_lora_ns +from . import EbyteLoraComponent, CONF_EBYTE_LORA, ebyte_lora_ns + +DEPENDENCIES = ["ebyte_lora"] EbyteLoraSwitch = ebyte_lora_ns.class_("EbyteLoraSwitch", switch.Switch, cg.Component) PIN_TO_SEND = "pin_to_send"