diff --git a/esphome/components/voice_assistant/voice_assistant.cpp b/esphome/components/voice_assistant/voice_assistant.cpp index 9b561ba058..e6ee8101f6 100644 --- a/esphome/components/voice_assistant/voice_assistant.cpp +++ b/esphome/components/voice_assistant/voice_assistant.cpp @@ -955,7 +955,7 @@ void VoiceAssistant::on_set_configuration(const std::vector &active } // Mark configuration dirty to trigger rebuild on next get_configuration() call. - this->mark_configuration_needs_rebuild_(); + this->config_needs_rebuild_ = true; } #endif }; diff --git a/esphome/components/voice_assistant/voice_assistant.h b/esphome/components/voice_assistant/voice_assistant.h index a75287c6c3..418e84819a 100644 --- a/esphome/components/voice_assistant/voice_assistant.h +++ b/esphome/components/voice_assistant/voice_assistant.h @@ -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_; }