1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00

[text] Store pattern as const char* to reduce memory usage (#12335)

This commit is contained in:
J. Nick Koston
2025-12-07 15:33:15 -06:00
committed by GitHub
parent 3d5d89ff00
commit 68a7634228
4 changed files with 8 additions and 8 deletions

View File

@@ -142,7 +142,7 @@ void WebServer::handle_index_request(AsyncWebServerRequest *request) {
stream.print(R"(" maxlength=")");
stream.print(text->traits.get_max_length());
stream.print(R"(" pattern=")");
stream.print(text->traits.get_pattern().c_str());
stream.print(text->traits.get_pattern_c_str());
stream.print(R"(" value=")");
stream.print(text->state.c_str());
stream.print(R"("/>)");