[binary_sensor] Restore comment about USE_BINARY_SENSOR guard

This commit is contained in:
J. Nick Koston
2026-03-22 16:40:47 -10:00
parent 1a8cbe92ff
commit a6e230d665
@@ -34,6 +34,7 @@ void BinarySensor::publish_initial_state(bool new_state) {
}
bool BinarySensor::set_new_state(const optional<bool> &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