Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Oct 25, 2024
1 parent 22def1b commit 7de9fb2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/tc_bus/tc_bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace esphome

#ifdef USE_SELECT
if (this->intercom_model_select_ != nullptr)
this->intercom_model_select_->publish_state(this->model_);
this->intercom_model_select_->publish_state(model_to_string(model_));
#endif

#if defined(USE_ESP_IDF) || (defined(USE_ARDUINO) && defined(ESP32))
Expand Down Expand Up @@ -678,11 +678,11 @@ namespace esphome
#ifdef USE_SELECT
void IntercomModelSelect::control(const std::string &value)
{
this->intercom_model_select_->publish_state(value);
this->publish_state(value);

Model model = string_to_model(&value);
this->model_ = model;
this->pref_.save(model);
Model model = string_to_model(value);
this->parent_->model_ = model;
this->parent_->pref_.save(model);
}
#endif

Expand Down

0 comments on commit 7de9fb2

Please sign in to comment.