mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
Linter fix
This commit is contained in:
parent
4a7325ee2b
commit
d7d5faf46b
@ -61,9 +61,7 @@ class WebServer : public Controller, public Component, public AsyncWebHandler {
|
|||||||
/// Handle an index request under '/'.
|
/// Handle an index request under '/'.
|
||||||
void handle_index_request(AsyncWebServerRequest *request);
|
void handle_index_request(AsyncWebServerRequest *request);
|
||||||
|
|
||||||
bool using_auth() {
|
bool using_auth() { return username_ != nullptr && password_ != nullptr; }
|
||||||
return username_ != nullptr && password_ != nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef USE_SENSOR
|
#ifdef USE_SENSOR
|
||||||
void on_sensor_update(sensor::Sensor *obj, float state) override;
|
void on_sensor_update(sensor::Sensor *obj, float state) override;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user