mirror of
https://github.com/esphome/esphome.git
synced 2025-09-15 09:42:19 +01:00
Avoid non-const globals and enable clang-tidy check (#1892)
This commit is contained in:
@@ -91,7 +91,7 @@ class APIServer : public Component, public Controller {
|
||||
std::vector<UserServiceDescriptor *> user_services_;
|
||||
};
|
||||
|
||||
extern APIServer *global_api_server;
|
||||
extern APIServer *global_api_server; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
|
||||
|
||||
template<typename... Ts> class APIConnectedCondition : public Condition<Ts...> {
|
||||
public:
|
||||
|
Reference in New Issue
Block a user