This commit is contained in:
kbx81
2025-11-24 01:33:32 -06:00
parent deb8ffafa8
commit c1bc0358c3
6 changed files with 12 additions and 27 deletions
+2 -4
View File
@@ -4,8 +4,7 @@
#ifdef USE_WIFI
#include "wifi_component.h"
namespace esphome {
namespace wifi {
namespace esphome::wifi {
template<typename... Ts> class WiFiConnectedCondition : public Condition<Ts...> {
public:
@@ -108,6 +107,5 @@ template<typename... Ts> class WiFiConfigureAction : public Action<Ts...>, publi
Trigger<> *error_trigger_{new Trigger<>()};
};
} // namespace wifi
} // namespace esphome
} // namespace esphome::wifi
#endif
+2 -4
View File
@@ -37,8 +37,7 @@
#include "esphome/components/esp32_improv/esp32_improv_component.h"
#endif
namespace esphome {
namespace wifi {
namespace esphome::wifi {
static const char *const TAG = "wifi";
@@ -1724,6 +1723,5 @@ bool WiFiScanResult::operator==(const WiFiScanResult &rhs) const { return this->
WiFiComponent *global_wifi_component; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
} // namespace wifi
} // namespace esphome
} // namespace esphome::wifi
#endif
+2 -4
View File
@@ -49,8 +49,7 @@ extern "C" {
#include <WiFi.h>
#endif
namespace esphome {
namespace wifi {
namespace esphome::wifi {
/// Sentinel value for RSSI when WiFi is not connected
static constexpr int8_t WIFI_RSSI_DISCONNECTED = -127;
@@ -569,6 +568,5 @@ class WiFiComponent : public Component {
extern WiFiComponent *global_wifi_component; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
} // namespace wifi
} // namespace esphome
} // namespace esphome::wifi
#endif
@@ -38,8 +38,7 @@ extern "C" {
#include "esphome/core/log.h"
#include "esphome/core/util.h"
namespace esphome {
namespace wifi {
namespace esphome::wifi {
static const char *const TAG = "wifi_esp8266";
@@ -892,8 +891,6 @@ network::IPAddress WiFiComponent::wifi_gateway_ip_() { return {(const ip_addr_t
network::IPAddress WiFiComponent::wifi_dns_ip_(int num) { return {(const ip_addr_t *) WiFi.dnsIP(num)}; }
void WiFiComponent::wifi_loop_() {}
} // namespace wifi
} // namespace esphome
} // namespace esphome::wifi
#endif
#endif
@@ -41,8 +41,7 @@
#include "esphome/core/log.h"
#include "esphome/core/util.h"
namespace esphome {
namespace wifi {
namespace esphome::wifi {
static const char *const TAG = "wifi_esp32";
@@ -1098,8 +1097,6 @@ network::IPAddress WiFiComponent::wifi_dns_ip_(int num) {
return network::IPAddress(dns_ip);
}
} // namespace wifi
} // namespace esphome
} // namespace esphome::wifi
#endif // USE_ESP32
#endif
@@ -14,8 +14,7 @@
#include "esphome/core/log.h"
#include "esphome/core/util.h"
namespace esphome {
namespace wifi {
namespace esphome::wifi {
static const char *const TAG = "wifi_pico_w";
@@ -269,8 +268,6 @@ void WiFiComponent::wifi_loop_() {
void WiFiComponent::wifi_pre_setup_() {}
} // namespace wifi
} // namespace esphome
} // namespace esphome::wifi
#endif
#endif