Fix lint issues in web_server_base (#2409)

This commit is contained in:
Jesse Hills 2021-09-28 15:33:30 +13:00 committed by GitHub
parent be965a60eb
commit 2234f6aacf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
#ifdef USE_ARDUINO #ifdef USE_ARDUINO
#include <memory> #include <memory>
#include <utility>
#include "esphome/core/component.h" #include "esphome/core/component.h"
#include <ESPAsyncWebServer.h> #include <ESPAsyncWebServer.h>
@ -96,8 +97,8 @@ class WebServerBase : public Component {
std::shared_ptr<AsyncWebServer> get_server() const { return server_; } std::shared_ptr<AsyncWebServer> get_server() const { return server_; }
float get_setup_priority() const override; float get_setup_priority() const override;
void set_auth_username(std::string auth_username) { credentials_.username = auth_username; } void set_auth_username(std::string auth_username) { credentials_.username = std::move(auth_username); }
void set_auth_password(std::string auth_password) { credentials_.password = auth_password; } void set_auth_password(std::string auth_password) { credentials_.password = std::move(auth_password); }
void add_handler(AsyncWebHandler *handler); void add_handler(AsyncWebHandler *handler);