1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 20:02:22 +01:00

Add messages when WiFi and Ethernet components set 'warning' flag. (#6850)

This commit is contained in:
Kevin P. Fleming
2024-06-01 18:40:50 -04:00
committed by GitHub
parent 2beb1f0336
commit 2353b2b5e1
2 changed files with 4 additions and 4 deletions

View File

@@ -135,7 +135,7 @@ void WiFiComponent::loop() {
switch (this->state_) {
case WIFI_COMPONENT_STATE_COOLDOWN: {
this->status_set_warning();
this->status_set_warning("waiting to reconnect");
if (millis() - this->action_started_ > 5000) {
if (this->fast_connect_ || this->retry_hidden_) {
this->start_connecting(this->sta_[0], false);
@@ -146,13 +146,13 @@ void WiFiComponent::loop() {
break;
}
case WIFI_COMPONENT_STATE_STA_SCANNING: {
this->status_set_warning();
this->status_set_warning("scanning for networks");
this->check_scanning_finished();
break;
}
case WIFI_COMPONENT_STATE_STA_CONNECTING:
case WIFI_COMPONENT_STATE_STA_CONNECTING_2: {
this->status_set_warning();
this->status_set_warning("associating to network");
this->check_connecting_finished();
break;
}