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 9e31287 commit 23cdc54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/tc_bus/tc_bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace esphome
{
ESP_LOGCONFIG(TAG, "Setting up TC:BUS Intercom...");

this->pref_ = global_preferences->make_preference<Model>(this->get_object_id_hash());
this->pref_ = global_preferences->make_preference<Model>(global_tcs_id);

Model saved_model;
if (this->pref_.load(&saved_model))
Expand All @@ -54,7 +54,7 @@ namespace esphome
else
{
this->model_ = MODEL_NONE;
this->pref_.save(this->model_);
this->pref_.save(&this->model_);
}

#ifdef USE_SELECT
Expand Down Expand Up @@ -942,7 +942,7 @@ namespace esphome

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

Expand Down

0 comments on commit 23cdc54

Please sign in to comment.