mirror of
https://github.com/esphome/esphome.git
synced 2025-10-05 19:33:47 +01:00
Use int_range validator (#542)
* Use int_range validator Just keeping code clean. * Lint
This commit is contained in:
@@ -13,7 +13,7 @@ CONFIG_SCHEMA = output.FLOAT_OUTPUT_SCHEMA.extend({
|
||||
cv.Required(CONF_ID): cv.declare_id(PCA9685Channel),
|
||||
cv.GenerateID(CONF_PCA9685_ID): cv.use_id(PCA9685Output),
|
||||
|
||||
cv.Required(CONF_CHANNEL): cv.All(cv.Coerce(int), cv.Range(min=0, max=15)),
|
||||
cv.Required(CONF_CHANNEL): cv.int_range(min=0, max=15),
|
||||
})
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user