ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
calibration_reset_button.cpp
Go to the documentation of this file.
2#include "../bl0940.h"
3#include "esphome/core/hal.h"
4#include "esphome/core/log.h"
6
7namespace esphome::bl0940 {
8
9static const char *const TAG = "bl0940.button.calibration_reset";
10
11void CalibrationResetButton::dump_config() { LOG_BUTTON("", "Calibration Reset Button", this); }
12
14 ESP_LOGI(TAG, "Resetting calibration defaults...");
15 this->parent_->reset_calibration();
16}
17
18} // namespace esphome::bl0940