From 761b0bf2dcaf2f943484c0cd9a34046f9733c8dd Mon Sep 17 00:00:00 2001 From: Dieter Tschanz Date: Sun, 20 Oct 2024 18:50:33 +0200 Subject: [PATCH] Readded NOLINT. --- esphome/components/camera/camera.cpp | 1 + esphome/components/camera/camera.h | 1 + 2 files changed, 2 insertions(+) diff --git a/esphome/components/camera/camera.cpp b/esphome/components/camera/camera.cpp index becf3fee2e..1e2f4397f7 100644 --- a/esphome/components/camera/camera.cpp +++ b/esphome/components/camera/camera.cpp @@ -3,6 +3,7 @@ namespace esphome { namespace camera { +// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) Camera *Camera::global_camera = nullptr; Camera::Camera() { global_camera = this; } diff --git a/esphome/components/camera/camera.h b/esphome/components/camera/camera.h index 0515b7396a..08ae637eb4 100644 --- a/esphome/components/camera/camera.h +++ b/esphome/components/camera/camera.h @@ -69,6 +69,7 @@ class Camera : public EntityBase { virtual void stop_stream(CameraRequester requester) = 0; virtual ~Camera() {} /// The singleton instance of the camera implementation. + // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) static Camera *global_camera; };