back to print

This commit is contained in:
J. Nick Koston
2026-01-09 16:18:35 -10:00
parent 33d2140f1c
commit 15734c63a1
@@ -709,8 +709,8 @@ void PrometheusHandler::select_row_(AsyncResponseStream *stream, select::Select
stream->print(ESPHOME_F("\",name=\""));
stream->print(relabel_name_(obj).c_str());
stream->print(ESPHOME_F("\",value=\""));
auto option = obj->current_option();
stream->write(option.c_str(), option.size());
// c_str() is safe as option values are null-terminated strings from codegen
stream->print(obj->current_option().c_str());
stream->print(ESPHOME_F("\"} "));
stream->print(ESPHOME_F("1.0"));
stream->print(ESPHOME_F("\n"));