17 this->
parent_->register_button_listener(
this);
21 void dump_config()
override { LOG_BINARY_SENSOR(
"",
"CST816 Button",
this); }
void publish_initial_state(bool state)
Publish the initial state, this will not make the callback manager send callbacks and is meant only f...
CST816Touchscreen * parent_
bool state
The current reported state of the binary sensor.
void publish_state(bool state)
Publish a new state to the front-end.
Implementation of SPI Controller mode.
Base class for all binary_sensor-type classes.
Helper class to easily give an object a parent of type T.