9 this->source_binary_sensor_->add_on_state_callback([
this](
bool value) { this->
publish_state(value); });
10 if (this->source_binary_sensor_->has_state())
14void CopyBinarySensor::dump_config() { LOG_BINARY_SENSOR(
"",
"Copy Binary Sensor",
this); }