mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Fix pin number validation for sn74hc595 (#2621)
This commit is contained in:
parent
72108684ea
commit
f1377b560e
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ SN74HC595_PIN_SCHEMA = cv.All(
|
||||||
{
|
{
|
||||||
cv.GenerateID(): cv.declare_id(SN74HC595GPIOPin),
|
cv.GenerateID(): cv.declare_id(SN74HC595GPIOPin),
|
||||||
cv.Required(CONF_SN74HC595): cv.use_id(SN74HC595Component),
|
cv.Required(CONF_SN74HC595): cv.use_id(SN74HC595Component),
|
||||||
cv.Required(CONF_NUMBER): cv.int_range(min=0, max=7),
|
cv.Required(CONF_NUMBER): cv.int_range(min=0, max=31),
|
||||||
cv.Optional(CONF_MODE, default={}): cv.All(
|
cv.Optional(CONF_MODE, default={}): cv.All(
|
||||||
{
|
{
|
||||||
cv.Optional(CONF_OUTPUT, default=True): cv.All(
|
cv.Optional(CONF_OUTPUT, default=True): cv.All(
|
||||||
|
|
Loading…
Reference in a new issue