ESPHome 2025.5.0
Loading...
Searching...
No Matches
cstt6_button.cpp
Go to the documentation of this file.
1#include "cs226_button.h"
2#include "esphome/core/log.h"
3
4namespace esphome {
5namespace cst226 {
6
7static const char *const TAG = "CST226.binary_sensor";
8
10 this->parent_->register_button_listener(this);
11 this->publish_initial_state(false);
12}
13
14void CST226Button::dump_config() { LOG_BINARY_SENSOR("", "CST226 Button", this); }
15
17
18} // namespace cst226
19} // namespace esphome
void publish_initial_state(bool state)
Publish the initial state, this will not make the callback manager send callbacks and is meant only f...
void publish_state(bool state)
Publish a new state to the front-end.
void update_button(bool state) override
bool state
Definition fan.h:0
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7