Make ethernet_info work with esp-idf framework (#4976)

This commit is contained in:
Jimmy Hedman 2023-06-22 06:09:00 +02:00 committed by Jesse Hills
parent 5ef9cd5f86
commit df9fcf9850
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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