mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
[code-quality] fix clang-tidy web server (#7230)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
fc146dabed
commit
8d106e97a2
2 changed files with 2 additions and 1 deletions
|
@ -334,7 +334,7 @@ class WebServer : public Controller, public Component, public AsyncWebHandler {
|
||||||
/// Override the web handler's handleRequest method.
|
/// Override the web handler's handleRequest method.
|
||||||
void handleRequest(AsyncWebServerRequest *request) override;
|
void handleRequest(AsyncWebServerRequest *request) override;
|
||||||
/// This web handle is not trivial.
|
/// This web handle is not trivial.
|
||||||
bool isRequestHandlerTrivial() override;
|
bool isRequestHandlerTrivial() override; // NOLINT(readability-identifier-naming)
|
||||||
|
|
||||||
void add_entity_to_sorting_list(EntityBase *entity, float weight);
|
void add_entity_to_sorting_list(EntityBase *entity, float weight);
|
||||||
|
|
||||||
|
|
|
@ -134,6 +134,7 @@ class OTARequestHandler : public AsyncWebHandler {
|
||||||
return request->url() == "/update" && request->method() == HTTP_POST;
|
return request->url() == "/update" && request->method() == HTTP_POST;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NOLINTNEXTLINE(readability-identifier-naming)
|
||||||
bool isRequestHandlerTrivial() override { return false; }
|
bool isRequestHandlerTrivial() override { return false; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
Loading…
Reference in a new issue