From 75599c7d5b2fd21d51f7a445c892cc336eb84419 Mon Sep 17 00:00:00 2001 From: nworbneb Date: Sun, 10 Nov 2024 17:26:14 +0000 Subject: [PATCH] Fix whitespace --- .../alarm_control_panel/template_alarm_control_panel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/template/alarm_control_panel/template_alarm_control_panel.cpp b/esphome/components/template/alarm_control_panel/template_alarm_control_panel.cpp index 5cd8870660..b2cb7dfac2 100644 --- a/esphome/components/template/alarm_control_panel/template_alarm_control_panel.cpp +++ b/esphome/components/template/alarm_control_panel/template_alarm_control_panel.cpp @@ -128,10 +128,10 @@ void TemplateAlarmControlPanel::loop() { // Look for the transition from closed to open if ((!this->sensor_data_[sensor_info.second.store_index].last_chime_state) && (sensor_info.first->state)) { // Must be disarmed to chime - if (this->current_state_ == ACP_STATE_DISARMED) { - this->chime_callback_.call(); + if (this->current_state_ == ACP_STATE_DISARMED) { + this->chime_callback_.call(); + } } - } // Record the sensor state change this->sensor_data_[sensor_info.second.store_index].last_chime_state = sensor_info.first->state; }