mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 15:08:10 +01:00
[code-quality] fix clang-tidy prometheus (#7284)
This commit is contained in:
parent
80a0f13722
commit
5646ec7f9c
2 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
#include "prometheus_handler.h"
|
#include "prometheus_handler.h"
|
||||||
|
#ifdef USE_NETWORK
|
||||||
#include "esphome/core/application.h"
|
#include "esphome/core/application.h"
|
||||||
|
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
|
@ -350,3 +351,4 @@ void PrometheusHandler::lock_row_(AsyncResponseStream *stream, lock::Lock *obj)
|
||||||
|
|
||||||
} // namespace prometheus
|
} // namespace prometheus
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include "esphome/core/defines.h"
|
||||||
|
#ifdef USE_NETWORK
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
@ -117,3 +118,4 @@ class PrometheusHandler : public AsyncWebHandler, public Component {
|
||||||
|
|
||||||
} // namespace prometheus
|
} // namespace prometheus
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue