1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-02 10:02:23 +01:00

[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

View File

@@ -1,4 +1,5 @@
#include "wifi_signal_sensor.h"
#ifdef USE_WIFI
#include "esphome/core/log.h"
namespace esphome {
@@ -10,3 +11,4 @@ void WiFiSignalSensor::dump_config() { LOG_SENSOR("", "WiFi Signal", this); }
} // namespace wifi_signal
} // namespace esphome
#endif

View File

@@ -4,7 +4,7 @@
#include "esphome/core/helpers.h"
#include "esphome/components/sensor/sensor.h"
#include "esphome/components/wifi/wifi_component.h"
#ifdef USE_WIFI
namespace esphome {
namespace wifi_signal {
@@ -19,3 +19,4 @@ class WiFiSignalSensor : public sensor::Sensor, public PollingComponent {
} // namespace wifi_signal
} // namespace esphome
#endif