This commit is contained in:
Daniël Koek 2024-03-27 18:16:49 +00:00
parent 3dab613b81
commit fd5cfbc565
2 changed files with 4 additions and 1 deletions

View file

@ -14,6 +14,7 @@ from esphome.const import (
CODEOWNERS = ["@danielkoek"] CODEOWNERS = ["@danielkoek"]
DEPENDENCIES = ["uart"] DEPENDENCIES = ["uart"]
AUTO_LOAD = ["uart", "sensor", "text_sensor"] AUTO_LOAD = ["uart", "sensor", "text_sensor"]
MULTI_CONF = True
ebyte_lora_ns = cg.esphome_ns.namespace("ebyte_lora") ebyte_lora_ns = cg.esphome_ns.namespace("ebyte_lora")
EbyteLoraComponent = ebyte_lora_ns.class_( EbyteLoraComponent = ebyte_lora_ns.class_(

View file

@ -1,8 +1,10 @@
import esphome.codegen as cg import esphome.codegen as cg
import esphome.config_validation as cv import esphome.config_validation as cv
from esphome.components import switch 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) EbyteLoraSwitch = ebyte_lora_ns.class_("EbyteLoraSwitch", switch.Switch, cg.Component)
PIN_TO_SEND = "pin_to_send" PIN_TO_SEND = "pin_to_send"