lint
This commit is contained in:
parent
8b400a9f78
commit
356a8a0fec
|
@ -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(
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue