mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 16:08:10 +01:00
and this
This commit is contained in:
parent
40f6aa34a5
commit
19b0c77999
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ AUTO_LOAD = ["uart", "sensor", "text_sensor"]
|
||||||
|
|
||||||
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_(
|
||||||
"EbyteLora", cg.PollingComponent, uart.UARTDevice
|
"EbyteLoraComponent", cg.PollingComponent, uart.UARTDevice
|
||||||
)
|
)
|
||||||
CONF_EBYTE_LORA = "ebyte_lora"
|
CONF_EBYTE_LORA = "ebyte_lora"
|
||||||
CONF_PIN_AUX = "pin_aux"
|
CONF_PIN_AUX = "pin_aux"
|
||||||
|
|
|
@ -3,7 +3,7 @@ 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
|
||||||
|
|
||||||
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"
|
PIN_TO_SEND = "pin_to_send"
|
||||||
CONFIG_SCHEMA = (
|
CONFIG_SCHEMA = (
|
||||||
|
|
Loading…
Reference in a new issue