From 90989aa7cde817420f0c4a7104342fb23fecea9e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 16 Jan 2026 13:30:27 -1000 Subject: [PATCH] bot review --- esphome/components/mapping/mapping.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/mapping/mapping.h b/esphome/components/mapping/mapping.h index 1e4f7858aae..ef20a173b7b 100644 --- a/esphome/components/mapping/mapping.h +++ b/esphome/components/mapping/mapping.h @@ -66,8 +66,8 @@ template class Mapping { } esph_log_e(TAG, "Key '%s' not found in mapping", buf); } else { - // Fallback for custom types - likely unreachable but kept for compatibility - esph_log_e(TAG, "Key '%s' not found in mapping", to_string(key).c_str()); + // All supported key types are handled above - this should never be reached + static_assert(sizeof(K) == 0, "Unsupported key type for Mapping error logging"); } return {}; }