1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-26 23:22:21 +01:00

Allow setup to continue past mqtt if network/wifi is disabled (#5754)

This commit is contained in:
Jesse Hills
2023-11-15 10:51:45 +13:00
committed by GitHub
parent ae0e481cff
commit 2754ddec1b
3 changed files with 11 additions and 1 deletions

View File

@@ -147,7 +147,7 @@ void MQTTClientComponent::dump_config() {
ESP_LOGCONFIG(TAG, " Availability: '%s'", this->availability_.topic.c_str());
}
}
bool MQTTClientComponent::can_proceed() { return this->is_connected(); }
bool MQTTClientComponent::can_proceed() { return network::is_disabled() || this->is_connected(); }
void MQTTClientComponent::start_dnslookup_() {
for (auto &subscription : this->subscriptions_) {