mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
Fix ESP8266 GPIO0 Pullup Validation (#2572)
This commit is contained in:
parent
34606b0f1f
commit
7f34561e53
2 changed files with 3 additions and 3 deletions
|
@ -107,9 +107,9 @@ def validate_supports(value):
|
|||
raise cv.Invalid(
|
||||
"Open-drain only works with output mode", [CONF_MODE, CONF_OPEN_DRAIN]
|
||||
)
|
||||
if is_pullup and num == 0:
|
||||
if is_pullup and num == 16:
|
||||
raise cv.Invalid(
|
||||
"GPIO Pin 0 does not support pullup pin mode. "
|
||||
"GPIO Pin 16 does not support pullup pin mode. "
|
||||
"Please choose another pin.",
|
||||
[CONF_MODE, CONF_PULLUP],
|
||||
)
|
||||
|
|
|
@ -1150,7 +1150,7 @@ servo:
|
|||
ttp229_lsf:
|
||||
|
||||
ttp229_bsf:
|
||||
sdo_pin: D0
|
||||
sdo_pin: D2
|
||||
scl_pin: D1
|
||||
|
||||
sim800l:
|
||||
|
|
Loading…
Reference in a new issue