[core] Replace Application name/friendly_name std::string with StringRef (#14532)

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
J. Nick Koston
2026-03-06 06:58:13 -10:00
committed by GitHub
parent 07e51886f3
commit 74e4b69654
14 changed files with 181 additions and 41 deletions
+3 -1
View File
@@ -12,7 +12,9 @@
using namespace esphome;
void setup() {
App.pre_setup("livingroom", "LivingRoom", false);
static char name[] = "livingroom";
static char friendly_name[] = "LivingRoom";
App.pre_setup(name, sizeof(name) - 1, friendly_name, sizeof(friendly_name) - 1);
auto *log = new logger::Logger(115200); // NOLINT
log->pre_setup();
log->set_uart_selection(logger::UART_SELECTION_UART0);