Update esphome/components/gpio/binary_sensor/__init__.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
J. Nick Koston 2025-07-18 10:17:52 -10:00 committed by GitHub
parent 6e7e2b4471
commit 186e64931a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,6 +29,10 @@ CONFIG_SCHEMA = (
.extend(
{
cv.Required(CONF_PIN): pins.gpio_input_pin_schema,
# Interrupts are disabled by default for bk72xx, ln882x, and rtl87xx platforms
# due to hardware limitations or lack of reliable interrupt support. This ensures
# stable operation on these platforms. Future maintainers should verify platform
# capabilities before changing this default behavior.
cv.SplitDefault(
CONF_USE_INTERRUPT,
bk72xx=False,