diff --git a/esphome/core/helpers.h b/esphome/core/helpers.h index 53b79a00b7..4a4c52bb06 100644 --- a/esphome/core/helpers.h +++ b/esphome/core/helpers.h @@ -67,7 +67,10 @@ To bit_cast(const From &src) { return dst; } #endif -using std::lerp; + +// clang-format off +inline float lerp(float completion, float start, float end) = delete; // Please use std::lerp. Notice that it has different order on arguments! +// clang-format on // std::byteswap from C++23 template constexpr T byteswap(T n) {