mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 16:08:10 +01:00
Try this
This commit is contained in:
parent
3dab613b81
commit
fd5cfbc565
2 changed files with 4 additions and 1 deletions
|
@ -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_(
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue