From e771b13fa5828d057b0f58d04036b45597e7bc99 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 6 Jun 2025 07:15:33 +0100 Subject: [PATCH] remove broken code --- esphome/components/api/api_connection.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/esphome/components/api/api_connection.h b/esphome/components/api/api_connection.h index 2038137539..18c8a24eb0 100644 --- a/esphome/components/api/api_connection.h +++ b/esphome/components/api/api_connection.h @@ -561,14 +561,6 @@ class APIConnection : public APIServerConnection { this->deferred_batch_.add_item(entity, creator, message_type); return this->schedule_batch_(); } - - // For cases where we can deduce the message type at compile time - bool schedule_message_(EntityBase *entity, MessageCreator creator) { - // For lambdas, we don't know the message type at compile time - // Use a placeholder value - we'll determine it when creating the message - this->deferred_batch_.add_item(entity, creator, 0); - return this->schedule_batch_(); - } }; } // namespace api