From 49b271747de53e955e5f9010c4bf38b170534b5e Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 7 Oct 2025 20:11:43 +1300 Subject: [PATCH] Add missing ifdef --- esphome/components/api/homeassistant_service.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esphome/components/api/homeassistant_service.h b/esphome/components/api/homeassistant_service.h index bc7afadb49..d1eb7ffc29 100644 --- a/esphome/components/api/homeassistant_service.h +++ b/esphome/components/api/homeassistant_service.h @@ -7,7 +7,9 @@ #include #include #include "api_pb2.h" +#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON #include "esphome/components/json/json_util.h" +#endif #include "esphome/core/automation.h" #include "esphome/core/helpers.h"