mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-04 00:51:49 +00:00 
			
		
		
		
	Make ethernet_info work with esp-idf framework (#4976)
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
#include "ethernet_info_text_sensor.h"
 | 
					#include "ethernet_info_text_sensor.h"
 | 
				
			||||||
#include "esphome/core/log.h"
 | 
					#include "esphome/core/log.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef USE_ESP32_FRAMEWORK_ARDUINO
 | 
					#ifdef USE_ESP32
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace esphome {
 | 
					namespace esphome {
 | 
				
			||||||
namespace ethernet_info {
 | 
					namespace ethernet_info {
 | 
				
			||||||
@@ -13,4 +13,4 @@ void IPAddressEthernetInfo::dump_config() { LOG_TEXT_SENSOR("", "EthernetInfo IP
 | 
				
			|||||||
}  // namespace ethernet_info
 | 
					}  // namespace ethernet_info
 | 
				
			||||||
}  // namespace esphome
 | 
					}  // namespace esphome
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif  // USE_ESP32_FRAMEWORK_ARDUINO
 | 
					#endif  // USE_ESP32
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,7 @@
 | 
				
			|||||||
#include "esphome/components/text_sensor/text_sensor.h"
 | 
					#include "esphome/components/text_sensor/text_sensor.h"
 | 
				
			||||||
#include "esphome/components/ethernet/ethernet_component.h"
 | 
					#include "esphome/components/ethernet/ethernet_component.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef USE_ESP32_FRAMEWORK_ARDUINO
 | 
					#ifdef USE_ESP32
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace esphome {
 | 
					namespace esphome {
 | 
				
			||||||
namespace ethernet_info {
 | 
					namespace ethernet_info {
 | 
				
			||||||
@@ -30,4 +30,4 @@ class IPAddressEthernetInfo : public PollingComponent, public text_sensor::TextS
 | 
				
			|||||||
}  // namespace ethernet_info
 | 
					}  // namespace ethernet_info
 | 
				
			||||||
}  // namespace esphome
 | 
					}  // namespace esphome
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif  // USE_ESP32_FRAMEWORK_ARDUINO
 | 
					#endif  // USE_ESP32
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user