mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
Fix lint issues in web_server_base (#2409)
This commit is contained in:
parent
4579f78bf9
commit
8ef2ad17b5
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
#include "esphome/core/component.h"
|
||||
|
||||
#include <ESPAsyncWebServer.h>
|
||||
|
@ -94,8 +96,8 @@ class WebServerBase : public Component {
|
|||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue