From 93d84bffe79dab2f4b3b2d76e4717bb306d64c1b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 9 Oct 2025 19:59:38 -1000 Subject: [PATCH] fixes --- esphome/pins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/pins.py b/esphome/pins.py index 9975bad12a..601c05880a 100644 --- a/esphome/pins.py +++ b/esphome/pins.py @@ -122,7 +122,7 @@ class PinRegistry(dict): raise cv.Invalid( f"Pin {pin_config[CONF_NUMBER]} is used in multiple places" ) - if count == 1 and allow_others: + if count == 1 and allow_others and not CORE.testing_mode: raise cv.Invalid( f"Pin {pin_config[CONF_NUMBER]} incorrectly sets {CONF_ALLOW_OTHER_USES}: true" )