This commit is contained in:
J. Nick Koston 2023-06-17 09:41:42 -05:00
parent 8b400a9f78
commit 356a8a0fec
No known key found for this signature in database
1 changed files with 15 additions and 20 deletions

View File

@ -2,8 +2,6 @@ import esphome.codegen as cg
import esphome.config_validation as cv
from esphome import pins
from esphome.const import CONF_ID
from esphome.const import CONF_ID
from esphome import pins
DEPENDENCIES = ["preferences"]
MULTI_CONF = True
@ -26,8 +24,7 @@ DEFAULT_INPUT_OBST = "D7" # D7 black obstruction sensor terminal
CONF_RATGDO_ID = "ratgdo_id"
CONFIG_SCHEMA = (
cv.Schema(
CONFIG_SCHEMA = cv.Schema(
{
cv.GenerateID(): cv.declare_id(RATGDO),
cv.Optional(
@ -40,9 +37,7 @@ CONFIG_SCHEMA = (
CONF_INPUT_OBST, default=DEFAULT_INPUT_OBST
): pins.gpio_input_pin_schema,
}
)
.extend(cv.COMPONENT_SCHEMA)
)
).extend(cv.COMPONENT_SCHEMA)
RATGDO_CLIENT_SCHMEA = cv.Schema(
{