Files
esphome-lsm6ds/esphome/components/micronova/button/micronova_button.cpp
T
Robert Reschandpre-commit-ci-lite[bot] 1134251c32 [micronova] Set update_interval on entities instead on hub (#12226)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-12-07 23:55:36 +00:00

17 lines
423 B
C++

#include "micronova_button.h"
namespace esphome::micronova {
void MicroNovaButton::press_action() {
switch (this->get_function()) {
case MicroNovaFunctions::STOVE_FUNCTION_CUSTOM:
this->micronova_->write_address(this->memory_location_, this->memory_address_, this->memory_data_);
break;
default:
break;
}
this->micronova_->request_update_listeners();
}
} // namespace esphome::micronova