mirror of
https://github.com/esphome/esphome.git
synced 2024-12-29 00:41:44 +01:00
Update __init__.py
This commit is contained in:
parent
22c8495eff
commit
9622a34ecc
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ from esphome import pins
|
|||
from esphome.const import CONF_ID, CONF_OUTPUT, CONF_NUMBER, CONF_INVERTED, CONF_MODE
|
||||
from .. import CONF_LORA, Lora, lora_ns
|
||||
|
||||
CONF_LORA_GPIO = "lora_gpio"
|
||||
LoraGPIOPin = lora_ns.class_("LoraGPIOPin", cg.GPIOPin)
|
||||
|
||||
|
||||
|
@ -26,7 +27,7 @@ Lora_PIN_SCHEMA = pins.gpio_base_schema(
|
|||
)
|
||||
|
||||
|
||||
@pins.PIN_SCHEMA_REGISTRY.register(CONF_LORA, Lora_PIN_SCHEMA)
|
||||
@pins.PIN_SCHEMA_REGISTRY.register(CONF_LORA_GPIO, Lora_PIN_SCHEMA)
|
||||
async def lora_pin_to_code(config):
|
||||
var = cg.new_Pvariable(config[CONF_ID])
|
||||
parent = await cg.get_variable(config[CONF_LORA])
|
||||
|
|
Loading…
Reference in a new issue