From 041c43fb32c803534ec33b956c0798091d780ddf Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 9 Feb 2026 20:14:54 -0600 Subject: [PATCH] Add INITIAL_STATE comment to else branch --- esphome/components/api/api_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/api/api_connection.cpp b/esphome/components/api/api_connection.cpp index 2b2b3a992b..329a341b21 100644 --- a/esphome/components/api/api_connection.cpp +++ b/esphome/components/api/api_connection.cpp @@ -267,7 +267,7 @@ void APIConnection::process_active_iterator_() { } else { this->process_iterator_batch_(this->iterator_storage_.list_entities); } - } else { + } else { // INITIAL_STATE if (this->iterator_storage_.initial_state.completed()) { this->destroy_active_iterator_(); // Process any remaining batched messages immediately