[code-quality] fix clang-tidy wifi related (#7254)

This commit is contained in:
tomaszduda23
2024-08-13 21:58:30 +02:00
committed by GitHub
parent f81ce2c707
commit 2e58297a16
11 changed files with 23 additions and 2 deletions
@@ -1,4 +1,5 @@
#include "wifi_info_text_sensor.h"
#ifdef USE_WIFI
#include "esphome/core/log.h"
namespace esphome {
@@ -15,3 +16,4 @@ void DNSAddressWifiInfo::dump_config() { LOG_TEXT_SENSOR("", "WifiInfo DNS Addre
} // namespace wifi_info
} // namespace esphome
#endif
@@ -3,6 +3,7 @@
#include "esphome/core/component.h"
#include "esphome/components/text_sensor/text_sensor.h"
#include "esphome/components/wifi/wifi_component.h"
#ifdef USE_WIFI
#include <array>
namespace esphome {
@@ -131,3 +132,4 @@ class MacAddressWifiInfo : public Component, public text_sensor::TextSensor {
} // namespace wifi_info
} // namespace esphome
#endif