7 auto value = this->
at(level);
11 Select::publish_state(value.value());
23 this->
parent_->set_log_level(level.value());
void control(const std::string &value) override
optional< std::string > at(size_t index) const
Return the (optional) option value at the provided index offset.
void publish_state(int level)
Implementation of SPI Controller mode.
optional< size_t > index_of(const std::string &option) const
Find the (optional) index offset of the provided option value.