mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 17:27:45 +01:00
Fix ESP8266 GPIO0 Pullup Validation (#2572)
This commit is contained in:
parent
332c9e891b
commit
f6935a4b4b
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