This commit is contained in:
J. Nick Koston 2023-06-09 15:54:28 -05:00
parent 93d404993b
commit ddb9115907
No known key found for this signature in database
7 changed files with 22 additions and 17 deletions

View File

@ -1,8 +1,8 @@
import esphome.codegen as cg import esphome.codegen as cg
import esphome.config_validation as cv import esphome.config_validation as cv
from esphome.const import CONF_ID
from esphome import pins from esphome import pins
from esphome.components import uart from esphome.components import uart
from esphome.const import CONF_ID
DEPENDENCIES = ["preferences", "uart"] DEPENDENCIES = ["preferences", "uart"]
MULTI_CONF = True MULTI_CONF = True
@ -17,7 +17,9 @@ DEFAULT_OUTPUT_GDO = (
"D4" # D4 red control terminal / GarageDoorOpener (UART1 TX) pin is D4 on D1 Mini "D4" # D4 red control terminal / GarageDoorOpener (UART1 TX) pin is D4 on D1 Mini
) )
CONF_INPUT_GDO = "input_gdo_pin" CONF_INPUT_GDO = "input_gdo_pin"
DEFAULT_INPUT_GDO = "D2" # D2 red control terminal / GarageDoorOpener (UART1 RX) pin is D2 on D1 Mini DEFAULT_INPUT_GDO = (
"D2" # D2 red control terminal / GarageDoorOpener (UART1 RX) pin is D2 on D1 Mini
)
CONF_INPUT_OBST = "input_obst_pin" CONF_INPUT_OBST = "input_obst_pin"
DEFAULT_INPUT_OBST = "D7" # D7 black obstruction sensor terminal DEFAULT_INPUT_OBST = "D7" # D7 black obstruction sensor terminal

View File

@ -1,8 +1,9 @@
import esphome.codegen as cg import esphome.codegen as cg
import esphome.config_validation as cv import esphome.config_validation as cv
from esphome.const import CONF_ID
from esphome.components import binary_sensor from esphome.components import binary_sensor
from .. import ratgdo_ns, register_ratgdo_child, RATGDO_CLIENT_SCHMEA from esphome.const import CONF_ID
from .. import RATGDO_CLIENT_SCHMEA, ratgdo_ns, register_ratgdo_child
DEPENDENCIES = ["ratgdo"] DEPENDENCIES = ["ratgdo"]

View File

@ -1,8 +1,9 @@
import esphome.codegen as cg import esphome.codegen as cg
import esphome.config_validation as cv import esphome.config_validation as cv
from esphome.const import CONF_ID
from esphome.components import button from esphome.components import button
from .. import ratgdo_ns, register_ratgdo_child, RATGDO_CLIENT_SCHMEA from esphome.const import CONF_ID
from .. import RATGDO_CLIENT_SCHMEA, ratgdo_ns, register_ratgdo_child
DEPENDENCIES = ["ratgdo"] DEPENDENCIES = ["ratgdo"]

View File

@ -1,9 +1,9 @@
import esphome.codegen as cg import esphome.codegen as cg
from esphome.const import CONF_ID
import esphome.config_validation as cv import esphome.config_validation as cv
from esphome.components import cover from esphome.components import cover
from .. import ratgdo_ns, register_ratgdo_child, RATGDO_CLIENT_SCHMEA from esphome.const import CONF_ID
from .. import RATGDO_CLIENT_SCHMEA, ratgdo_ns, register_ratgdo_child
DEPENDENCIES = ["ratgdo"] DEPENDENCIES = ["ratgdo"]

View File

@ -1,10 +1,9 @@
import esphome.codegen as cg import esphome.codegen as cg
import esphome.config_validation as cv import esphome.config_validation as cv
from esphome.const import (
CONF_OUTPUT_ID, # New in 2023.5
)
from esphome.components import light from esphome.components import light
from .. import ratgdo_ns, register_ratgdo_child, RATGDO_CLIENT_SCHMEA from esphome.const import CONF_OUTPUT_ID # New in 2023.5
from .. import RATGDO_CLIENT_SCHMEA, ratgdo_ns, register_ratgdo_child
DEPENDENCIES = ["ratgdo"] DEPENDENCIES = ["ratgdo"]

View File

@ -1,8 +1,9 @@
import esphome.codegen as cg import esphome.codegen as cg
import esphome.config_validation as cv import esphome.config_validation as cv
from esphome.const import CONF_ID
from esphome.components import number from esphome.components import number
from .. import ratgdo_ns, register_ratgdo_child, RATGDO_CLIENT_SCHMEA from esphome.const import CONF_ID
from .. import RATGDO_CLIENT_SCHMEA, ratgdo_ns, register_ratgdo_child
DEPENDENCIES = ["ratgdo"] DEPENDENCIES = ["ratgdo"]

View File

@ -1,8 +1,9 @@
import esphome.codegen as cg import esphome.codegen as cg
import esphome.config_validation as cv import esphome.config_validation as cv
from esphome.const import CONF_ID
from esphome.components import switch from esphome.components import switch
from .. import ratgdo_ns, register_ratgdo_child, RATGDO_CLIENT_SCHMEA from esphome.const import CONF_ID
from .. import RATGDO_CLIENT_SCHMEA, ratgdo_ns, register_ratgdo_child
DEPENDENCIES = ["ratgdo"] DEPENDENCIES = ["ratgdo"]