7 static 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...
std::function< optional< bool >)> f_
void dump_config() override
void publish_state(bool state)
Publish a new state to the front-end.
bool publish_initial_state_
Implementation of SPI Controller mode.