binary sensor

This commit is contained in:
J. Nick Koston 2023-06-07 11:05:43 -05:00
parent b9cc7d2522
commit 1e0f92eaf1
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,10 @@ TYPES = {"motion", "obstruction"}
CONFIG_SCHEMA = binary_sensor.BINARY_SENSOR_SCHEMA.extend(
{cv.Required(CONF_TYPE): str}
{
cv.GenerateID(): cv.declare_id(RATGDOBinarySensor),
cv.Required(CONF_TYPE): str
}
).extend(cv.COMPONENT_SCHEMA)