Correction for failing test.

This commit is contained in:
Dieter Tschanz 2024-11-07 17:34:12 +01:00
parent 3a11485a4d
commit 90481e13b0
2 changed files with 2 additions and 0 deletions

View file

@ -3,6 +3,7 @@
namespace esphome { namespace esphome {
namespace camera { namespace camera {
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
Camera *Camera::global_camera = nullptr; Camera *Camera::global_camera = nullptr;
Camera::Camera() { Camera::Camera() {

View file

@ -79,6 +79,7 @@ class Camera : public Component, public EntityBase {
CallbackManager<void(std::shared_ptr<camera::CameraImage>)> new_image_callback_{}; CallbackManager<void(std::shared_ptr<camera::CameraImage>)> new_image_callback_{};
CallbackManager<void()> stream_start_callback_{}; CallbackManager<void()> stream_start_callback_{};
CallbackManager<void()> stream_stop_callback_{}; CallbackManager<void()> stream_stop_callback_{};
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
static Camera *global_camera; static Camera *global_camera;
}; };