mirror of
https://github.com/esphome/esphome.git
synced 2025-11-01 07:31:51 +00:00
adjust
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
@@ -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_; }
|
||||
|
||||
Reference in New Issue
Block a user