mirror of
https://github.com/esphome/esphome.git
synced 2025-07-28 22:26:36 +00:00
[ethernet] Remove redundant "ethernet" from log messages (#8966)
This commit is contained in:
parent
e62d8bfabe
commit
6a225cb4c0
@ -245,33 +245,33 @@ void EthernetComponent::loop() {
|
|||||||
switch (this->state_) {
|
switch (this->state_) {
|
||||||
case EthernetComponentState::STOPPED:
|
case EthernetComponentState::STOPPED:
|
||||||
if (this->started_) {
|
if (this->started_) {
|
||||||
ESP_LOGI(TAG, "Starting ethernet connection");
|
ESP_LOGI(TAG, "Starting connection");
|
||||||
this->state_ = EthernetComponentState::CONNECTING;
|
this->state_ = EthernetComponentState::CONNECTING;
|
||||||
this->start_connect_();
|
this->start_connect_();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EthernetComponentState::CONNECTING:
|
case EthernetComponentState::CONNECTING:
|
||||||
if (!this->started_) {
|
if (!this->started_) {
|
||||||
ESP_LOGI(TAG, "Stopped ethernet connection");
|
ESP_LOGI(TAG, "Stopped connection");
|
||||||
this->state_ = EthernetComponentState::STOPPED;
|
this->state_ = EthernetComponentState::STOPPED;
|
||||||
} else if (this->connected_) {
|
} else if (this->connected_) {
|
||||||
// connection established
|
// connection established
|
||||||
ESP_LOGI(TAG, "Connected via Ethernet!");
|
ESP_LOGI(TAG, "Connected");
|
||||||
this->state_ = EthernetComponentState::CONNECTED;
|
this->state_ = EthernetComponentState::CONNECTED;
|
||||||
|
|
||||||
this->dump_connect_params_();
|
this->dump_connect_params_();
|
||||||
this->status_clear_warning();
|
this->status_clear_warning();
|
||||||
} 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 failed; reconnecting");
|
||||||
this->start_connect_();
|
this->start_connect_();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EthernetComponentState::CONNECTED:
|
case EthernetComponentState::CONNECTED:
|
||||||
if (!this->started_) {
|
if (!this->started_) {
|
||||||
ESP_LOGI(TAG, "Stopped ethernet connection");
|
ESP_LOGI(TAG, "Stopped connection");
|
||||||
this->state_ = EthernetComponentState::STOPPED;
|
this->state_ = EthernetComponentState::STOPPED;
|
||||||
} else if (!this->connected_) {
|
} else if (!this->connected_) {
|
||||||
ESP_LOGW(TAG, "Connection via Ethernet lost! Re-connecting...");
|
ESP_LOGW(TAG, "Connection lost; reconnecting");
|
||||||
this->state_ = EthernetComponentState::CONNECTING;
|
this->state_ = EthernetComponentState::CONNECTING;
|
||||||
this->start_connect_();
|
this->start_connect_();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user