mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 11:22:24 +01:00
13 lines
302 B
C++
13 lines
302 B
C++
#include "dac_output_select.h"
|
|
|
|
namespace esphome {
|
|
namespace es8388 {
|
|
|
|
void DacOutputSelect::control(const std::string &value) {
|
|
this->publish_state(value);
|
|
this->parent_->set_dac_output(static_cast<DacOutputLine>(this->index_of(value).value()));
|
|
}
|
|
|
|
} // namespace es8388
|
|
} // namespace esphome
|