From b77e2441d459d02e7caa411911e1aa0f4454c088 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 7 Sep 2026 10:09:46 +0200 Subject: [PATCH] [api] Undefine PROTO_OUTLINE_FOR_SIZE after the encode helpers The macro only exists for the two fixed32 writers in ProtoEncode, so drop it once the class is complete instead of leaking it into every translation unit that includes proto.h. --- esphome/components/api/proto.h | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/api/proto.h b/esphome/components/api/proto.h index cda772005b..8fb05cd6ef 100644 --- a/esphome/components/api/proto.h +++ b/esphome/components/api/proto.h @@ -597,6 +597,7 @@ class ProtoEncode { return buffer.get_pos(); } }; +#undef PROTO_OUTLINE_FOR_SIZE #ifdef HAS_PROTO_MESSAGE_DUMP /**