diff --git a/esphome/components/climate/climate_traits.h b/esphome/components/climate/climate_traits.h index 58d7b586d7..4088d1a9ac 100644 --- a/esphome/components/climate/climate_traits.h +++ b/esphome/components/climate/climate_traits.h @@ -168,21 +168,21 @@ class ClimateTraits { protected: void set_mode_support_(climate::ClimateMode mode, bool supported) { - if (supported) { + if (supported) { // NOLINT(bugprone-branch-clone) supported_modes_.insert(mode); } else { supported_modes_.erase(mode); } } void set_fan_mode_support_(climate::ClimateFanMode mode, bool supported) { - if (supported) { + if (supported) { // NOLINT(bugprone-branch-clone) supported_fan_modes_.insert(mode); } else { supported_fan_modes_.erase(mode); } } void set_swing_mode_support_(climate::ClimateSwingMode mode, bool supported) { - if (supported) { + if (supported) { // NOLINT(bugprone-branch-clone) supported_swing_modes_.insert(mode); } else { supported_swing_modes_.erase(mode); diff --git a/esphome/core/helpers.cpp b/esphome/core/helpers.cpp index 2a302056cb..4926b8600f 100644 --- a/esphome/core/helpers.cpp +++ b/esphome/core/helpers.cpp @@ -215,7 +215,7 @@ uint32_t random_uint32() { std::uniform_int_distribution dist(0, std::numeric_limits::max()); return dist(rng); #elif defined(USE_ZEPHYR) - return rand(); + return rand(); // NOLINT(cert-msc30-c,cert-msc50-cpp) #else #error "No random source available for this configuration." #endif