mirror of
https://github.com/esphome/esphome.git
synced 2025-09-03 11:52:20 +01:00
Wrap VA code (#4800)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "voice_assistant.h"
|
||||
|
||||
#ifdef USE_VOICE_ASSISTANT
|
||||
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
#include <cstdio>
|
||||
@@ -192,3 +194,5 @@ VoiceAssistant *global_voice_assistant = nullptr; // NOLINT(cppcoreguidelines-a
|
||||
|
||||
} // namespace voice_assistant
|
||||
} // namespace esphome
|
||||
|
||||
#endif // USE_VOICE_ASSISTANT
|
||||
|
@@ -1,5 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "esphome/core/defines.h"
|
||||
|
||||
#ifdef USE_VOICE_ASSISTANT
|
||||
|
||||
#include "esphome/core/automation.h"
|
||||
#include "esphome/core/component.h"
|
||||
#include "esphome/core/defines.h"
|
||||
@@ -86,3 +90,5 @@ extern VoiceAssistant *global_voice_assistant; // NOLINT(cppcoreguidelines-avoi
|
||||
|
||||
} // namespace voice_assistant
|
||||
} // namespace esphome
|
||||
|
||||
#endif // USE_VOICE_ASSISTANT
|
||||
|
Reference in New Issue
Block a user