This commit is contained in:
Daniël Koek 2024-03-27 17:37:01 +00:00
parent 40f6aa34a5
commit 19b0c77999
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ AUTO_LOAD = ["uart", "sensor", "text_sensor"]
ebyte_lora_ns = cg.esphome_ns.namespace("ebyte_lora")
EbyteLoraComponent = ebyte_lora_ns.class_(
"EbyteLora", cg.PollingComponent, uart.UARTDevice
"EbyteLoraComponent", cg.PollingComponent, uart.UARTDevice
)
CONF_EBYTE_LORA = "ebyte_lora"
CONF_PIN_AUX = "pin_aux"

View file

@ -3,7 +3,7 @@ import esphome.config_validation as cv
from esphome.components import switch
from .. import EbyteLoraComponent, CONF_EBYTE_LORA, ebyte_lora_ns
EbyteLoraSwitch = ebyte_lora_ns.class_("LoraSwitch", switch.Switch, cg.Component)
EbyteLoraSwitch = ebyte_lora_ns.class_("EbyteLoraSwitch", switch.Switch, cg.Component)
PIN_TO_SEND = "pin_to_send"
CONFIG_SCHEMA = (