From 863c0b576a6c0d6b0c4928c900143dbf8295f8be Mon Sep 17 00:00:00 2001 From: cptskippy Date: Fri, 31 May 2024 23:30:26 +0000 Subject: [PATCH] clang-tidy suggested change. --- esphome/components/ld2415h/ld2415h.cpp | 2 +- esphome/components/ld2415h/ld2415h.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/ld2415h/ld2415h.cpp b/esphome/components/ld2415h/ld2415h.cpp index 5b21b1d676..57381fc94d 100644 --- a/esphome/components/ld2415h/ld2415h.cpp +++ b/esphome/components/ld2415h/ld2415h.cpp @@ -446,7 +446,7 @@ const char *LD2415HComponent::negotiation_mode_to_s_(NegotiationMode value) { } } -const char *i_to_s_(const std::map &map, uint8_t i) { +const char *i_to_s(const std::map &map, uint8_t i) { for (const auto &pair : map) { if (pair.second == i) { return pair.first.c_str(); diff --git a/esphome/components/ld2415h/ld2415h.h b/esphome/components/ld2415h/ld2415h.h index 87a7f65bae..8f5a42f34f 100644 --- a/esphome/components/ld2415h/ld2415h.h +++ b/esphome/components/ld2415h/ld2415h.h @@ -134,7 +134,7 @@ class LD2415HComponent : public Component, public uart::UARTDevice { const char *tracking_mode_to_s_(TrackingMode value); const char *unit_of_measure_to_s_(UnitOfMeasure value); const char *negotiation_mode_to_s_(NegotiationMode value); - const char *i_to_s_(const std::map &map, uint8_t i); + const char *i_to_s(const std::map &map, uint8_t i); std::vector listeners_{}; };