fix clang-tidy

This commit is contained in:
Tomasz Duda 2024-08-14 17:56:43 +02:00
parent 459d7af273
commit 8d0739aa4a
2 changed files with 4 additions and 0 deletions

View file

@ -1,4 +1,5 @@
#include "prometheus_handler.h"
#ifdef USE_NETWORK
#include "esphome/core/application.h"
namespace esphome {
@ -350,3 +351,4 @@ void PrometheusHandler::lock_row_(AsyncResponseStream *stream, lock::Lock *obj)
} // namespace prometheus
} // namespace esphome
#endif

View file

@ -4,6 +4,7 @@
#include <utility>
#include "esphome/components/web_server_base/web_server_base.h"
#ifdef USE_NETWORK
#include "esphome/core/component.h"
#include "esphome/core/controller.h"
#include "esphome/core/entity_base.h"
@ -117,3 +118,4 @@ class PrometheusHandler : public AsyncWebHandler, public Component {
} // namespace prometheus
} // namespace esphome
#endif