Fix whitespace

This commit is contained in:
nworbneb 2024-11-10 17:26:14 +00:00 committed by GitHub
parent 6646254570
commit 75599c7d5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}