diff --git a/esphome/components/api/api_connection.h b/esphome/components/api/api_connection.h index cac2fb5d83..aa323d339d 100644 --- a/esphome/components/api/api_connection.h +++ b/esphome/components/api/api_connection.h @@ -303,7 +303,7 @@ class APIConnection : public APIServerConnection { #ifdef USE_VOICE_ASSISTANT // Helper to check voice assistant validity and connection ownership - bool check_voice_assistant_api_connection_() const; + inline bool check_voice_assistant_api_connection_() const; #endif // Helper method to process multiple entities from an iterator in a batch