mirror of
https://github.com/esphome/esphome.git
synced 2025-11-16 06:45:48 +00:00
23 lines
550 B
C++
23 lines
550 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <initializer_list>
|
|
#include "esphome/core/helpers.h"
|
|
|
|
namespace esphome {
|
|
namespace select {
|
|
|
|
class SelectTraits {
|
|
public:
|
|
void set_options(std::initializer_list<std::string> options);
|
|
const FixedVector<std::string> &get_options() const;
|
|
/// Copy options from another SelectTraits (for copy_select, lvgl)
|
|
void copy_options(const FixedVector<std::string> &other) { this->options_.copy_from(other); }
|
|
|
|
protected:
|
|
FixedVector<std::string> options_;
|
|
};
|
|
|
|
} // namespace select
|
|
} // namespace esphome
|