mirror of
https://github.com/esphome/esphome.git
synced 2025-09-21 20:52:20 +01:00
more api loop reductions
This commit is contained in:
@@ -152,7 +152,7 @@ void APIConnection::loop() {
|
|||||||
|
|
||||||
// Process deferred batch if scheduled
|
// Process deferred batch if scheduled
|
||||||
if (this->deferred_batch_.batch_scheduled &&
|
if (this->deferred_batch_.batch_scheduled &&
|
||||||
App.get_loop_component_start_time() - this->deferred_batch_.batch_start_time >= this->get_batch_delay_ms_()) {
|
now - this->deferred_batch_.batch_start_time >= this->get_batch_delay_ms_()) {
|
||||||
this->process_batch_();
|
this->process_batch_();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user