[web_server] Fix unused function warning for json_state_str (#17524)

This commit is contained in:
J. Nick Koston
2026-07-13 09:19:23 +12:00
committed by Jesse Hills
parent 665e788cc9
commit 1e5cfe6b0f
+1 -1
View File
@@ -57,7 +57,7 @@ namespace esphome::web_server {
static const char *const TAG = "web_server";
// View a state LogString as a ProgmemStr so ArduinoJson serializes it PROGMEM-aware on ESP8266.
static ProgmemStr json_state_str(const LogString *s) { return reinterpret_cast<ProgmemStr>(s); }
[[maybe_unused]] static ProgmemStr json_state_str(const LogString *s) { return reinterpret_cast<ProgmemStr>(s); }
// Parse URL and return match info
// URL formats (disambiguated by HTTP method for 3-segment case):