1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-18 09:43:47 +01:00

Always tick mdns in ethernet component (#2018)

This commit is contained in:
Sean Vig
2021-07-15 00:12:48 -04:00
committed by GitHub
parent 628a94bad3
commit 45d368e3a1

View File

@@ -102,8 +102,6 @@ void EthernetComponent::loop() {
this->dump_connect_params_(); this->dump_connect_params_();
this->status_clear_warning(); this->status_clear_warning();
network_tick_mdns();
} else if (now - this->connect_begin_ > 15000) { } else if (now - this->connect_begin_ > 15000) {
ESP_LOGW(TAG, "Connecting via ethernet failed! Re-connecting..."); ESP_LOGW(TAG, "Connecting via ethernet failed! Re-connecting...");
this->start_connect_(); this->start_connect_();
@@ -120,6 +118,8 @@ void EthernetComponent::loop() {
} }
break; break;
} }
network_tick_mdns();
} }
void EthernetComponent::dump_config() { void EthernetComponent::dump_config() {
ESP_LOGCONFIG(TAG, "Ethernet:"); ESP_LOGCONFIG(TAG, "Ethernet:");