Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lint issues in web_server_base #2409

Merged
merged 1 commit into from Sep 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Fix lint issues in web_server_base
  • Loading branch information
jesserockz committed Sep 28, 2021
commit 207cde1667d8c799a197b78ca8a5a14de8d5ca1e
5 changes: 3 additions & 2 deletions esphome/components/web_server_base/web_server_base.h
Expand Up @@ -3,6 +3,7 @@
#ifdef USE_ARDUINO

#include <memory>
#include <utility>
#include "esphome/core/component.h"

#include <ESPAsyncWebServer.h>
Expand Down Expand Up @@ -96,8 +97,8 @@ class WebServerBase : public Component {
std::shared_ptr<AsyncWebServer> get_server() const { return server_; }
float get_setup_priority() const override;

void set_auth_username(std::string auth_username) { credentials_.username = auth_username; }
void set_auth_password(std::string auth_password) { credentials_.password = auth_password; }
void set_auth_username(std::string auth_username) { credentials_.username = std::move(auth_username); }
void set_auth_password(std::string auth_password) { credentials_.password = std::move(auth_password); }

void add_handler(AsyncWebHandler *handler);

Expand Down