1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-19 08:15:49 +00:00

Introduce call_dump_config() indirection (#2325)

This commit is contained in:
Oxan van Leeuwen
2021-09-20 11:16:31 +02:00
committed by GitHub
parent 2d7f8b3bdf
commit 1e8e471dec
5 changed files with 15 additions and 2 deletions

View File

@@ -186,6 +186,12 @@ void MQTTComponent::call_loop() {
this->schedule_resend_state();
}
}
void MQTTComponent::call_dump_config() {
if (this->is_internal())
return;
this->dump_config();
}
void MQTTComponent::schedule_resend_state() { this->resend_state_ = true; }
std::string MQTTComponent::unique_id() { return ""; }
bool MQTTComponent::is_connected_() const { return global_mqtt_client->is_connected(); }