From befe5d3bd2021c4d2a5fe2b8f16fcac40c84e9e3 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 16 Jan 2026 13:32:31 -1000 Subject: [PATCH] bot review --- esphome/components/mapping/mapping.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/esphome/components/mapping/mapping.h b/esphome/components/mapping/mapping.h index fd56b6c814..2b8f0d39b2 100644 --- a/esphome/components/mapping/mapping.h +++ b/esphome/components/mapping/mapping.h @@ -52,10 +52,6 @@ template class Mapping { buf_append_printf(buf, sizeof(buf), 0, "%" PRId64, static_cast(key)); } esph_log_e(TAG, "Key '%s' not found in mapping", buf); - } else if constexpr (std::is_floating_point_v) { - char buf[32]; // enough for %g with doubles - buf_append_printf(buf, sizeof(buf), 0, "%g", static_cast(key)); - esph_log_e(TAG, "Key '%s' not found in mapping", buf); } else { // All supported key types are handled above - this should never be reached static_assert(sizeof(K) == 0, "Unsupported key type for Mapping error logging");