From cd1b47667bb05f6850648b013754f1c16bbc0b1b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 2 Oct 2025 23:02:46 +0200 Subject: [PATCH] preen --- esphome/core/helpers.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/esphome/core/helpers.h b/esphome/core/helpers.h index 51115105ac..3b38af0dd8 100644 --- a/esphome/core/helpers.h +++ b/esphome/core/helpers.h @@ -14,10 +14,6 @@ #include "esphome/core/optional.h" -namespace esphome { -class StringRef; -} - #ifdef USE_ESP8266 #include #endif @@ -49,6 +45,9 @@ class StringRef; namespace esphome { +// Forward declaration to avoid circular dependency with string_ref.h +class StringRef; + /// @name STL backports ///@{