From a6e230d665ee39e06cf8d3e6b6e4dd11df7c1d98 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 22 Mar 2026 16:40:47 -1000 Subject: [PATCH] [binary_sensor] Restore comment about USE_BINARY_SENSOR guard --- esphome/components/binary_sensor/binary_sensor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/binary_sensor/binary_sensor.cpp b/esphome/components/binary_sensor/binary_sensor.cpp index a7b2f5ba91..0fb58082cb 100644 --- a/esphome/components/binary_sensor/binary_sensor.cpp +++ b/esphome/components/binary_sensor/binary_sensor.cpp @@ -34,6 +34,7 @@ void BinarySensor::publish_initial_state(bool new_state) { } bool BinarySensor::set_new_state(const optional &new_state) { if (StatefulEntityBase::set_new_state(new_state)) { + // weirdly, this file could be compiled even without USE_BINARY_SENSOR defined #if defined(USE_BINARY_SENSOR) && defined(USE_CONTROLLER_REGISTRY) ControllerRegistry::notify_binary_sensor_update(this); #endif