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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user