mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-05 20:38:27 +02:00
Avoid non-const globals and enable clang-tidy check (#1892)
This commit is contained in:
@@ -79,7 +79,7 @@ class DeepSleepComponent : public Component {
|
||||
bool prevent_{false};
|
||||
};
|
||||
|
||||
extern bool global_has_deep_sleep;
|
||||
extern bool global_has_deep_sleep; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
|
||||
|
||||
template<typename... Ts> class EnterDeepSleepAction : public Action<Ts...> {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user