From 9b9c50994b1f408d4c4f2830cfa9f0c0cf6445c5 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 28 Oct 2025 15:41:55 -0500 Subject: [PATCH] remove dead code --- esphome/components/api/proto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/api/proto.h b/esphome/components/api/proto.h index d7084fb7ba..c5d77a79bc 100644 --- a/esphome/components/api/proto.h +++ b/esphome/components/api/proto.h @@ -291,8 +291,8 @@ class ProtoWriteBuffer { // size_t overload (only enabled if size_t is distinct from uint32_t and uint64_t) template - requires std::is_same_v && !std::is_same_v && - !std::is_same_v void encode_varint(T value) { + requires(std::is_same_v && !std::is_same_v && + !std::is_same_v) void encode_varint(T value) { this->encode_varint(static_cast(value)); }