6namespace display_menu_base {
11 return LOG_STR(
"MENU_ITEM_LABEL");
13 return LOG_STR(
"MENU_ITEM_MENU");
15 return LOG_STR(
"MENU_ITEM_BACK");
17 return LOG_STR(
"MENU_ITEM_SELECT");
19 return LOG_STR(
"MENU_ITEM_NUMBER");
21 return LOG_STR(
"MENU_ITEM_SWITCH");
23 return LOG_STR(
"MENU_ITEM_COMMAND");
25 return LOG_STR(
"MENU_ITEM_CUSTOM");
27 return LOG_STR(
"UNKNOWN");
107 bool changed =
false;
126 if (!this->
number_var_->
has_state() || this->number_var_->state < this->number_var_->traits.get_min_value()) {
128 }
else if (this->
number_var_->
state > this->number_var_->traits.get_max_value()) {
159 bool changed =
false;
bool select_next() override
bool select_prev() override
NumberCall & number_decrement(bool cycle)
NumberCall & number_increment(bool cycle)
bool has_state() const
Return whether this number has gotten a full state yet.
float get_min_value() const
float get_max_value() const
value_type const & 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.
void toggle()
Toggle this switch.
bool state
The current reported state of the binary sensor.
Providing packet encoding functions for exchanging data with a remote host.