mirror of
https://github.com/esphome/esphome.git
synced 2026-09-16 01:28:39 +00:00
back to print
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user