1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-27 13:13:50 +00:00

Skip gpio validation (#5615)

This commit is contained in:
Andrew McFague
2024-05-15 16:49:04 -07:00
committed by GitHub
parent 7d804bf90f
commit f0ec900e48
5 changed files with 54 additions and 4 deletions

View File

@@ -150,7 +150,7 @@ TOUCH_PAD_WATERPROOF_SHIELD_DRIVER = {
def validate_touch_pad(value):
value = gpio.validate_gpio_pin(value)
value = gpio.gpio_pin_number_validator(value)
variant = get_esp32_variant()
if variant not in TOUCH_PADS:
raise cv.Invalid(f"ESP32 variant {variant} does not support touch pads.")