7static const char *
const TAG =
"copy.binary_sensor";
void add_on_state_callback(std::function< void(T)> &&callback)
virtual bool has_state() const
void publish_state(bool new_state)
Publish a new state to the front-end.
void dump_config() override
binary_sensor::BinarySensor * source_
Providing packet encoding functions for exchanging data with a remote host.