1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-02 01:52:21 +01:00

[esp32] improve gpio (#8709)

This commit is contained in:
Thomas Rupprecht
2025-05-13 08:24:38 +02:00
committed by GitHub
parent 410b6353fe
commit c5654b4cb2
6 changed files with 20 additions and 22 deletions

View File

@@ -22,7 +22,7 @@ def esp32_c2_validate_supports(value):
is_input = mode[CONF_INPUT]
if num < 0 or num > 20:
raise cv.Invalid(f"Invalid pin number: {value} (must be 0-20)")
raise cv.Invalid(f"Invalid pin number: {num} (must be 0-20)")
if is_input:
# All ESP32 pins support input mode