1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-24 04:33:49 +01:00
Files
esphome/esphome/components/seeed_mr24hpc1/select/unman_time_select.cpp
2024-03-12 16:33:40 +13:00

16 lines
345 B
C++

#include "unman_time_select.h"
namespace esphome {
namespace seeed_mr24hpc1 {
void UnmanTimeSelect::control(const std::string &value) {
this->publish_state(value);
auto index = this->index_of(value);
if (index.has_value()) {
this->parent_->set_unman_time(index.value());
}
}
} // namespace seeed_mr24hpc1
} // namespace esphome