mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	[ethernet] Remove redundant "ethernet" from log messages (#8966)
This commit is contained in:
		| @@ -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_(); | ||||||
|       } |       } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user