Fix ESP8266 GPIO0 Pullup Validation (#2572)

This commit is contained in:
Otto Winter 2021-10-21 12:23:37 +02:00 committed by Otto winter
parent 332c9e891b
commit f6935a4b4b
No known key found for this signature in database
GPG key ID: 48ED2DDB96D7682C
2 changed files with 3 additions and 3 deletions

View file

@ -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],
) )

View file

@ -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: