From 4448cf61e91a7cbead1a1afe1b7733c1c5bb12b4 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 20 Aug 2026 18:08:56 -0500 Subject: [PATCH] Point runtime needle callers at the ESP8266 guard in the doc comment --- esphome/core/helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/core/helpers.h b/esphome/core/helpers.h index a622dca50f..4796be44d7 100644 --- a/esphome/core/helpers.h +++ b/esphome/core/helpers.h @@ -990,7 +990,7 @@ bool str_contains_ignore_case_fallback(const char *haystack, const char *needle) bool str_contains_ignore_case_p(const char *haystack, PGM_P needle); /// Case-insensitive check if needle string is contained in haystack (no heap allocation). /// On ESP8266 the needle is wrapped with PSTR() so it stays in flash, which requires it to be -/// a string literal; pass a runtime needle to str_contains_ignore_case_p directly instead. +/// a string literal; a runtime needle needs str_contains_ignore_case_p behind #ifdef USE_ESP8266. #define str_contains_ignore_case(haystack, needle) str_contains_ignore_case_p(haystack, PSTR(needle)) #else /// Case-insensitive check if needle string is contained in haystack (no heap allocation).