mirror of
https://github.com/esphome/esphome.git
synced 2025-09-14 09:12:19 +01:00
Merge branch 'api_opt' into integration
This commit is contained in:
@@ -149,10 +149,11 @@ void APIConnection::loop() {
|
|||||||
this->process_batch_();
|
this->process_batch_();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this->list_entities_iterator_.completed())
|
if (!this->list_entities_iterator_.completed()) {
|
||||||
this->list_entities_iterator_.advance();
|
this->list_entities_iterator_.advance();
|
||||||
else if (!this->initial_state_iterator_.completed())
|
} else if (!this->initial_state_iterator_.completed()) {
|
||||||
this->initial_state_iterator_.advance();
|
this->initial_state_iterator_.advance();
|
||||||
|
}
|
||||||
|
|
||||||
if (this->sent_ping_) {
|
if (this->sent_ping_) {
|
||||||
// Disconnect if not responded within 2.5*keepalive
|
// Disconnect if not responded within 2.5*keepalive
|
||||||
|
Reference in New Issue
Block a user