mirror of
https://github.com/esphome/esphome.git
synced 2026-09-27 06:50:22 +00:00
[core] fix capitalisation of "pin" (#19405)
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user