From 1617da2541b2e4b25decb3635756b3691b6786b1 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 2 Mar 2026 07:44:43 -1000 Subject: [PATCH] [core] Remove static_asserts for micros_to_millis Covered by integration test now. --- esphome/core/helpers.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/esphome/core/helpers.h b/esphome/core/helpers.h index cbb893bf5a4..72ef66283b9 100644 --- a/esphome/core/helpers.h +++ b/esphome/core/helpers.h @@ -636,10 +636,6 @@ template inline constexpr ESPHOME_ALWAYS_INLINE Ret // static_cast(hi) widens to 64-bit when ReturnT=uint64_t, preserving upper bits of hi*q return static_cast(hi) * q + (adj < lo ? (adj + r) / d + q : adj / d); } -static_assert(micros_to_millis(0) == 0); -static_assert(micros_to_millis(999) == 0); -static_assert(micros_to_millis(1000) == 1); -static_assert(micros_to_millis(2592000000000ULL) == 2592000000U); // 30 days /// Return a random 32-bit unsigned integer. uint32_t random_uint32();