7 static const char *
const TAG =
"switch.binary_sensor";
void dump_config() override
void add_on_state_callback(std::function< void(bool)> &&callback)
Set callback for state changes.
void publish_state(bool state)
Publish a new state to the front-end.
Implementation of SPI Controller mode.
bool state
The current reported state of the binary sensor.