#pragma once

#include "esphome/core/component.h"
#include "esphome/components/binary_sensor/binary_sensor.h"

namespace esphome::copy {

class CopyBinarySensor final : public binary_sensor::BinarySensor, public Component {
 public:
  void set_source(binary_sensor::BinarySensor *source) { source_ = source; }
  void setup() override;
  void dump_config() override;

 protected:
  binary_sensor::BinarySensor *source_;
};

}  // namespace esphome::copy
