From 0e05ae56e5f8eb6646c5bd49e886ecad58637d8a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 26 Feb 2026 23:18:55 -1000 Subject: [PATCH] Fix friend declaration for ESP8266 clang-tidy The fully-qualified friend uint64_t ::esphome::millis_64() syntax causes 'uint64_t is not a class, namespace, or enumeration' errors on the ESP8266 clang-tidy toolchain. Use unqualified form which resolves correctly within the esphome namespace. --- esphome/core/scheduler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/core/scheduler.h b/esphome/core/scheduler.h index 757f60c2ce..c605325810 100644 --- a/esphome/core/scheduler.h +++ b/esphome/core/scheduler.h @@ -299,7 +299,7 @@ class Scheduler { // On non-ESP32 platforms, millis_64() HAL function delegates to this method // which tracks 32-bit millis() rollover using millis_major_ and last_millis_. // On ESP32, millis_64() uses esp_timer_get_time() directly. - friend uint64_t ::esphome::millis_64(); + friend uint64_t millis_64(); uint64_t millis_64_impl_(uint32_t now); #endif // Cleanup logically deleted items from the scheduler