mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 09:44:12 +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"]
|
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_(
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue