ESPHome 2026.6.0-dev
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::cst226 {
5
6static const char *const TAG = "CST226.binary_sensor";
7
9 this->parent_->register_button_listener(this);
10 this->publish_initial_state(false);
11}
12
13void CST226Button::dump_config() { LOG_BINARY_SENSOR("", "CST226 Button", this); }
14
16
17} // namespace esphome::cst226
void publish_state(bool new_state)
Publish a new state to the front-end.
void publish_initial_state(bool new_state)
Publish the initial state, this will not make the callback manager send callbacks and is meant only f...
void update_button(bool state) override
bool state
Definition fan.h:2