From 856cdd47c1e97c067d0791f604e92929adfcd0c6 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 6 Jun 2025 07:19:03 +0100 Subject: [PATCH] remove broken code --- esphome/components/api/api_connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/api/api_connection.cpp b/esphome/components/api/api_connection.cpp index 4fa42b8313..2d76c3b517 100644 --- a/esphome/components/api/api_connection.cpp +++ b/esphome/components/api/api_connection.cpp @@ -928,7 +928,8 @@ bool APIConnection::send_text_state(text::Text *text, std::string state) { resp.missing_state = !t->has_state(); resp.key = t->get_object_id_hash(); return encode_message_to_buffer(resp, TextStateResponse::message_type, conn, remaining_size, is_single); - }); + }, + TextStateResponse::message_type); } void APIConnection::send_text_info(text::Text *text) { this->schedule_message_(text, &APIConnection::try_send_text_info_, ListEntitiesTextResponse::message_type);