10 return LOG_STR(
"MENU_ITEM_LABEL");
12 return LOG_STR(
"MENU_ITEM_MENU");
14 return LOG_STR(
"MENU_ITEM_BACK");
16 return LOG_STR(
"MENU_ITEM_SELECT");
18 return LOG_STR(
"MENU_ITEM_NUMBER");
20 return LOG_STR(
"MENU_ITEM_SWITCH");
22 return LOG_STR(
"MENU_ITEM_COMMAND");
24 return LOG_STR(
"MENU_ITEM_CUSTOM");
26 return LOG_STR(
"UNKNOWN");
45 result.assign(option.c_str(), option.size());
109 bool changed =
false;
128 if (!this->
number_var_->
has_state() || this->number_var_->state < this->number_var_->traits.get_min_value()) {
130 }
else if (this->
number_var_->
state > this->number_var_->traits.get_max_value()) {
161 bool changed =
false;
bool select_next() override
bool select_prev() override
NumberCall & number_decrement(bool cycle)
NumberCall & number_increment(bool cycle)
float get_min_value() const
float get_max_value() const
SelectCall & select_next(bool cycle)
SelectCall & select_previous(bool cycle)
SelectCall make_call()
Instantiate a SelectCall object to modify this select component's state.
StringRef current_option() const
Return the currently selected option, or empty StringRef if no state.
void toggle()
Toggle this switch.
bool state
The current reported state of the binary sensor.