ESPHome 2026.8.0-dev
Loading...
Searching...
No Matches
cst328_button.cpp
Go to the documentation of this file.
1#include "cst328_button.h"
2#include "esphome/core/log.h"
3
4namespace esphome::cst328 {
5static const char *const TAG = "cst328.binary_sensor";
6
8 this->parent_->register_button_listener(this);
9 this->publish_initial_state(false);
10}
11
12void CST328Button::dump_config() { LOG_BINARY_SENSOR("", "CST328 Button", this); }
13
15
16} // namespace esphome::cst328
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