binary sensor
This commit is contained in:
parent
b9cc7d2522
commit
1e0f92eaf1
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue