1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-01 07:31:51 +00:00
This commit is contained in:
J. Nick Koston
2025-10-08 08:05:44 -10:00
parent 542ca43cf6
commit d5ee5c7861
2 changed files with 2 additions and 5 deletions

View File

@@ -955,7 +955,7 @@ void VoiceAssistant::on_set_configuration(const std::vector<std::string> &active
}
// Mark configuration dirty to trigger rebuild on next get_configuration() call.
this->mark_configuration_needs_rebuild_();
this->config_needs_rebuild_ = true;
}
#endif
};

View File

@@ -114,7 +114,7 @@ class VoiceAssistant : public Component {
#ifdef USE_MICRO_WAKE_WORD
void set_micro_wake_word(micro_wake_word::MicroWakeWord *mww) {
this->micro_wake_word_ = mww;
this->mark_configuration_needs_rebuild_();
this->config_needs_rebuild_ = true;
}
#endif
#ifdef USE_SPEAKER
@@ -176,9 +176,6 @@ class VoiceAssistant : public Component {
// to prevent use-after-free with StringRef and avoid wasteful rebuilding.
const Configuration &get_configuration();
// Mark configuration dirty so it gets rebuilt on next get_configuration() call.
void mark_configuration_needs_rebuild_() { this->config_needs_rebuild_ = true; }
bool is_running() const { return this->state_ != State::IDLE; }
void set_continuous(bool continuous) { this->continuous_ = continuous; }
bool is_continuous() const { return this->continuous_; }