mirror of
https://github.com/esphome/esphome.git
synced 2025-09-27 15:42:22 +01:00
Reduce number of calls to fetch time in the main loop (#8804)
This commit is contained in:
@@ -345,7 +345,7 @@ void MQTTClientComponent::loop() {
|
||||
this->disconnect_reason_.reset();
|
||||
}
|
||||
|
||||
const uint32_t now = millis();
|
||||
const uint32_t now = App.get_loop_component_start_time();
|
||||
|
||||
switch (this->state_) {
|
||||
case MQTT_CLIENT_DISABLED:
|
||||
|
Reference in New Issue
Block a user