mirror of
https://github.com/esphome/esphome.git
synced 2026-09-21 20:18:43 +00:00
preen
This commit is contained in:
@@ -149,9 +149,6 @@ bool ESPNowComponent::is_wifi_enabled() {
|
||||
}
|
||||
|
||||
void ESPNowComponent::setup() {
|
||||
// Initialize LwIP stack for wake_loop_threadsafe() socket support
|
||||
// Network interface setup handled by network component
|
||||
|
||||
if (this->enable_on_boot_) {
|
||||
this->enable_();
|
||||
} else {
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
#include "esp_netif.h"
|
||||
#include "esp_event.h"
|
||||
#endif
|
||||
namespace esphome {
|
||||
namespace network {
|
||||
namespace esphome::network {
|
||||
|
||||
static const char *const TAG = "network";
|
||||
|
||||
@@ -33,6 +32,6 @@ void NetworkComponent::setup() {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
} // namespace network
|
||||
} // namespace esphome
|
||||
|
||||
} // namespace esphome::network
|
||||
#endif
|
||||
|
||||
@@ -7,13 +7,11 @@
|
||||
#include "esp_netif.h"
|
||||
#include "esp_event.h"
|
||||
#endif
|
||||
namespace esphome {
|
||||
namespace network {
|
||||
namespace esphome::network {
|
||||
class NetworkComponent : public Component {
|
||||
public:
|
||||
void setup() override;
|
||||
float get_setup_priority() const override { return setup_priority::AFTER_BLUETOOTH; }
|
||||
};
|
||||
} // namespace network
|
||||
} // namespace esphome
|
||||
} // namespace esphome::network
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user