[core] fix capitalisation of "pin" (#19405)

This commit is contained in:
Xiretza
2026-09-18 18:30:35 -04:00
committed by GitHub
parent 623aec2984
commit a53efcf646
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ def check_strapping_pin(conf, strapping_pin_list: set[int], logger: Logger):
num = conf[CONF_NUMBER]
if num in strapping_pin_list and not conf.get(CONF_IGNORE_STRAPPING_WARNING):
logger.warning(
"GPIO%s is a strapping PIN and should only be used for I/O with care.\n"
"GPIO%s is a strapping pin and should only be used for I/O with care.\n"
"Attaching external pullup/down resistors to strapping pins can cause unexpected failures.\n"
"See https://esphome.io/guides/faq/#why-am-i-getting-a-warning-about-strapping-pins",
num,
+1 -1
View File
@@ -1457,7 +1457,7 @@ def test_esp32_s31_gpio_validation(
pin = {CONF_NUMBER: 36, CONF_MODE: input_mode}
with caplog.at_level("WARNING"):
validate_supports(pin)
assert "GPIO36 is a strapping PIN" in caplog.text
assert "GPIO36 is a strapping pin" in caplog.text
_TLS_SERVER_OPTIONS = (