Update esphome/core/scheduler.h

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
J. Nick Koston
2025-09-03 16:37:01 -05:00
committed by GitHub
co-authored by Copilot
parent 26e0151fee
commit 1298268937
+1 -1
View File
@@ -161,7 +161,7 @@ class Scheduler {
SchedulerItem &operator=(SchedulerItem &&) = delete;
// Helper to get the name regardless of storage type
constexpr const char *get_name() const { return name_is_dynamic ? name_.dynamic_name : name_.static_name; }
const char *get_name() const { return name_is_dynamic ? name_.dynamic_name : name_.static_name; }
// Helper to set name with proper ownership
void set_name(const char *name, bool make_copy = false) {