mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 09:44:12 +01:00
remove lint
This commit is contained in:
parent
53d1538bfd
commit
17dc2b00f8
1 changed files with 3 additions and 3 deletions
|
@ -168,21 +168,21 @@ class ClimateTraits {
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void set_mode_support_(climate::ClimateMode mode, bool supported) {
|
void set_mode_support_(climate::ClimateMode mode, bool supported) {
|
||||||
if (supported) { // NOLINT(bugprone-branch-clone)
|
if (supported) {
|
||||||
supported_modes_.insert(mode);
|
supported_modes_.insert(mode);
|
||||||
} else {
|
} else {
|
||||||
supported_modes_.erase(mode);
|
supported_modes_.erase(mode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void set_fan_mode_support_(climate::ClimateFanMode mode, bool supported) {
|
void set_fan_mode_support_(climate::ClimateFanMode mode, bool supported) {
|
||||||
if (supported) { // NOLINT(bugprone-branch-clone)
|
if (supported) {
|
||||||
supported_fan_modes_.insert(mode);
|
supported_fan_modes_.insert(mode);
|
||||||
} else {
|
} else {
|
||||||
supported_fan_modes_.erase(mode);
|
supported_fan_modes_.erase(mode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void set_swing_mode_support_(climate::ClimateSwingMode mode, bool supported) {
|
void set_swing_mode_support_(climate::ClimateSwingMode mode, bool supported) {
|
||||||
if (supported) { // NOLINT(bugprone-branch-clone)
|
if (supported) {
|
||||||
supported_swing_modes_.insert(mode);
|
supported_swing_modes_.insert(mode);
|
||||||
} else {
|
} else {
|
||||||
supported_swing_modes_.erase(mode);
|
supported_swing_modes_.erase(mode);
|
||||||
|
|
Loading…
Reference in a new issue