From bdabbdaaea601aa1c6d6dadae4d91eeb21f61275 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 16 Jan 2026 13:31:30 -1000 Subject: [PATCH] bot review --- esphome/components/mapping/mapping.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/esphome/components/mapping/mapping.h b/esphome/components/mapping/mapping.h index ef20a173b7..fd56b6c814 100644 --- a/esphome/components/mapping/mapping.h +++ b/esphome/components/mapping/mapping.h @@ -56,15 +56,6 @@ template class Mapping { 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 if constexpr (std::is_enum_v) { - using underlying_t = std::underlying_type_t; - char buf[24]; // enough for underlying integral type - if constexpr (std::is_unsigned_v) { - buf_append_printf(buf, sizeof(buf), 0, "%" PRIu64, static_cast(static_cast(key))); - } else { - buf_append_printf(buf, sizeof(buf), 0, "%" PRId64, static_cast(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");