mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +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(
|
raise cv.Invalid(
|
||||||
"Open-drain only works with output mode", [CONF_MODE, CONF_OPEN_DRAIN]
|
"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(
|
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.",
|
"Please choose another pin.",
|
||||||
[CONF_MODE, CONF_PULLUP],
|
[CONF_MODE, CONF_PULLUP],
|
||||||
)
|
)
|
||||||
|
|
|
@ -1150,7 +1150,7 @@ servo:
|
||||||
ttp229_lsf:
|
ttp229_lsf:
|
||||||
|
|
||||||
ttp229_bsf:
|
ttp229_bsf:
|
||||||
sdo_pin: D0
|
sdo_pin: D2
|
||||||
scl_pin: D1
|
scl_pin: D1
|
||||||
|
|
||||||
sim800l:
|
sim800l:
|
||||||
|
|
Loading…
Reference in a new issue