From 17dc2b00f88eb2279d884dbc1024f75a25d96f08 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Wed, 7 Aug 2024 17:39:10 +0200 Subject: [PATCH] remove lint --- esphome/components/climate/climate_traits.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/climate/climate_traits.h b/esphome/components/climate/climate_traits.h index 4088d1a9ac..58d7b586d7 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) { // NOLINT(bugprone-branch-clone) + if (supported) { supported_modes_.insert(mode); } else { supported_modes_.erase(mode); } } void set_fan_mode_support_(climate::ClimateFanMode mode, bool supported) { - if (supported) { // NOLINT(bugprone-branch-clone) + if (supported) { supported_fan_modes_.insert(mode); } else { supported_fan_modes_.erase(mode); } } void set_swing_mode_support_(climate::ClimateSwingMode mode, bool supported) { - if (supported) { // NOLINT(bugprone-branch-clone) + if (supported) { supported_swing_modes_.insert(mode); } else { supported_swing_modes_.erase(mode);