[api] Rename USE_API_SERVICES to USE_API_USER_DEFINED_ACTIONS (#12029)

This commit is contained in:
Jesse Hills authored and GitHub committed 2025-11-24 08:13:23 +13:00
1 parent 3f6f2d7d65
commit a5751b294f
17 files changed
+38 -38

No files matched your search

+3 -3
View File
@@ -5,7 +5,7 @@
#ifdef USE_API
#include "esphome/components/api/api_server.h"
#endif
#ifdef USE_API_SERVICES
#ifdef USE_API_USER_DEFINED_ACTIONS
#include "esphome/components/api/user_services.h"
#endif
@@ -81,7 +81,7 @@ void ComponentIterator::advance() {
break;
#endif
#ifdef USE_API_SERVICES
#ifdef USE_API_USER_DEFINED_ACTIONS
case IteratorState::SERVICE:
this->process_platform_item_(api::global_api_server->get_user_services(), &ComponentIterator::on_service);
break;
@@ -185,7 +185,7 @@ void ComponentIterator::advance() {
bool ComponentIterator::on_end() { return true; }
bool ComponentIterator::on_begin() { return true; }
#ifdef USE_API_SERVICES
#ifdef USE_API_USER_DEFINED_ACTIONS
bool ComponentIterator::on_service(api::UserServiceDescriptor *service) { return true; }
#endif
#ifdef USE_CAMERA