7static const char *
const TAG =
"template.binary_sensor";
13 if (this->
f_ !=
nullptr) {
20 if (this->
f_ ==
nullptr)
void publish_initial_state(bool state)
Publish the initial state, this will not make the callback manager send callbacks and is meant only f...
bool publish_initial_state_
void publish_state(bool state)
Publish a new state to the front-end.
std::function< optional< bool >()> f_
void dump_config() override
Providing packet encoding functions for exchanging data with a remote host.