From 915b32cb335af00e756319e8bc97f4d16861c2c6 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 26 Feb 2026 22:52:48 -1000 Subject: [PATCH] Fix clang-tidy redundant-declaration warning Include hal.h directly in scheduler.h instead of forward-declaring millis_64(), which clang-tidy flags as redundant when both headers are included in the same translation unit. --- esphome/core/scheduler.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/esphome/core/scheduler.h b/esphome/core/scheduler.h index 43b44c3eed7..fa95484e7f1 100644 --- a/esphome/core/scheduler.h +++ b/esphome/core/scheduler.h @@ -10,13 +10,11 @@ #endif #include "esphome/core/component.h" +#include "esphome/core/hal.h" #include "esphome/core/helpers.h" namespace esphome { -// Declared in hal.h - forward declare to avoid circular include -uint64_t millis_64(); - class Component; struct RetryArgs;