SX1509 component (#5385)

This commit is contained in:
vr6racer 2023-09-13 03:14:54 +01:00 committed by GitHub
parent 736dbfac13
commit 11433c8c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,8 +14,8 @@ SX1509BinarySensor = sx1509_ns.class_("SX1509BinarySensor", binary_sensor.Binary
CONFIG_SCHEMA = binary_sensor.binary_sensor_schema(SX1509BinarySensor).extend( CONFIG_SCHEMA = binary_sensor.binary_sensor_schema(SX1509BinarySensor).extend(
{ {
cv.GenerateID(CONF_SX1509_ID): cv.use_id(SX1509Component), cv.GenerateID(CONF_SX1509_ID): cv.use_id(SX1509Component),
cv.Required(CONF_ROW): cv.int_range(min=0, max=4), cv.Required(CONF_ROW): cv.int_range(min=0, max=7),
cv.Required(CONF_COL): cv.int_range(min=0, max=4), cv.Required(CONF_COL): cv.int_range(min=0, max=7),
} }
) )