diff --git a/esphome/components/json/json_util.cpp b/esphome/components/json/json_util.cpp index 678ebd64c4c..69f8bfc61a9 100644 --- a/esphome/components/json/json_util.cpp +++ b/esphome/components/json/json_util.cpp @@ -25,6 +25,7 @@ std::string build_json(const json_build_t &f) { } bool parse_json(const std::string &data, const json_parse_t &f) { + // NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks) false positive with ArduinoJson return parse_json(reinterpret_cast(data.c_str()), data.size(), f); }