From ecbbb6edd64ba29f9eb28cb3deb2ad541b4f0469 Mon Sep 17 00:00:00 2001 From: Oleg Tarasov Date: Fri, 15 Nov 2024 19:20:59 +0300 Subject: [PATCH] Formatting --- esphome/components/shelly_dimmer/shelly_dimmer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/shelly_dimmer/shelly_dimmer.cpp b/esphome/components/shelly_dimmer/shelly_dimmer.cpp index c0d9e48786..0b74d2e17a 100644 --- a/esphome/components/shelly_dimmer/shelly_dimmer.cpp +++ b/esphome/components/shelly_dimmer/shelly_dimmer.cpp @@ -600,7 +600,7 @@ void ShellyDimmer::perform_calibration_measurement_() { this->calibration_measurements_[this->calibration_measurement_cnt_] = this->power_sensor_->state; this->calibration_measurement_cnt_++; - if ((uint32_t)this->calibration_measurement_cnt_ >= this->calibration_measurements_.size()) { + if ((uint32_t) this->calibration_measurement_cnt_ >= this->calibration_measurements_.size()) { this->complete_calibration_step_(); } } @@ -623,7 +623,7 @@ void ShellyDimmer::complete_calibration_step_() { this->calibration_measurements_.fill(0); // If all measurements collected, finish calibration - if ((uint32_t)this->calibration_step_ >= this->calibration_data_.size()) { + if ((uint32_t) this->calibration_step_ >= this->calibration_data_.size()) { this->complete_calibration_(); return; }