binary sensor

This commit is contained in:
J. Nick Koston 2023-06-07 11:08:51 -05:00
parent f94cf1d724
commit 92b29573bb
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ from esphome.components import binary_sensor
from .. import ( from .. import (
ratgdo_ns, ratgdo_ns,
register_ratgdo_child, register_ratgdo_child,
RATGDO_CLIENT_SCHMEA
) )
DEPENDENCIES = ["ratgdo"] DEPENDENCIES = ["ratgdo"]
@ -22,7 +23,7 @@ CONFIG_SCHEMA = binary_sensor.BINARY_SENSOR_SCHEMA.extend(
cv.GenerateID(): cv.declare_id(RATGDOBinarySensor), cv.GenerateID(): cv.declare_id(RATGDOBinarySensor),
cv.Required(CONF_TYPE): str cv.Required(CONF_TYPE): str
} }
).extend(cv.COMPONENT_SCHEMA) ).extend(RATGDO_CLIENT_SCHMEA)
async def to_code(config): async def to_code(config):