7 static const char *
const TAG =
"copy.binary_sensor";
binary_sensor::BinarySensor * source_
void dump_config() override
virtual bool has_state() const
Return whether this binary sensor has outputted a state.
bool state
The current reported state of the binary sensor.
void publish_state(bool state)
Publish a new state to the front-end.
void add_on_state_callback(std::function< void(bool)> &&callback)
Add a callback to be notified of state changes.
Implementation of SPI Controller mode.