mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 16:48:40 +00:00
Rename resend_pending() to is_resend_pending() for consistency
This commit is contained in:
@@ -404,7 +404,7 @@ void MQTTClientComponent::loop() {
|
||||
{
|
||||
uint8_t resend_count = 0;
|
||||
for (MQTTComponent *component : this->children_) {
|
||||
if (component->resend_pending()) {
|
||||
if (component->is_resend_pending()) {
|
||||
component->process_resend();
|
||||
if (++resend_count >= MAX_RESENDS_PER_LOOP)
|
||||
break;
|
||||
|
||||
@@ -148,7 +148,7 @@ class MQTTComponent : public Component {
|
||||
void schedule_resend_state();
|
||||
|
||||
/// Check if a resend is pending (called by MQTTClientComponent to rate-limit work)
|
||||
bool resend_pending() const { return this->resend_state_; }
|
||||
bool is_resend_pending() const { return this->resend_state_; }
|
||||
|
||||
/// Process pending resend if needed (called by MQTTClientComponent)
|
||||
void process_resend();
|
||||
|
||||
Reference in New Issue
Block a user