void control(size_t index) override
void dump_config() override
SelectCall & set_index(size_t index)
void add_on_state_callback(F &&callback)
SelectCall make_call()
Instantiate a SelectCall object to modify this select component's state.
optional< size_t > active_index() const
Return the (optional) index offset of the currently active option.
void publish_state(const std::string &state)
void set_options(const SelectOptions &options)
Runtime lists: the pointer list is copied, as before; the strings must still outlive the select.
const SelectOptions & get_options() const
ESPHOME_LOG_TAG(TAG, "copy.binary_sensor")