mirror of
https://github.com/esphome/esphome.git
synced 2025-01-08 13:51:43 +01:00
Fix unexpected whitespace changes
This commit is contained in:
parent
a0777b41e1
commit
6646254570
1 changed files with 12 additions and 12 deletions
|
@ -122,19 +122,19 @@ void TemplateAlarmControlPanel::loop() {
|
||||||
|
|
||||||
#ifdef USE_BINARY_SENSOR
|
#ifdef USE_BINARY_SENSOR
|
||||||
// Test all of the sensors in the list regardless of the alarm panel state
|
// Test all of the sensors in the list regardless of the alarm panel state
|
||||||
for (auto sensor_info : this->sensor_map_) {
|
for (auto sensor_info : this->sensor_map_) {
|
||||||
// Check for chime zones
|
// Check for chime zones
|
||||||
if ((sensor_info.second.flags & BINARY_SENSOR_MODE_CHIME)) {
|
if ((sensor_info.second.flags & BINARY_SENSOR_MODE_CHIME)) {
|
||||||
// Look for the transition from closed to open
|
// Look for the transition from closed to open
|
||||||
if ((!this->sensor_data_[sensor_info.second.store_index].last_chime_state) && (sensor_info.first->state)) {
|
if ((!this->sensor_data_[sensor_info.second.store_index].last_chime_state) && (sensor_info.first->state)) {
|
||||||
// Must be disarmed to chime
|
// Must be disarmed to chime
|
||||||
if (this->current_state_ == ACP_STATE_DISARMED) {
|
if (this->current_state_ == ACP_STATE_DISARMED) {
|
||||||
this->chime_callback_.call();
|
this->chime_callback_.call();
|
||||||
}
|
|
||||||
}
|
|
||||||
// Record the sensor state change
|
|
||||||
this->sensor_data_[sensor_info.second.store_index].last_chime_state = sensor_info.first->state;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
// Record the sensor state change
|
||||||
|
this->sensor_data_[sensor_info.second.store_index].last_chime_state = sensor_info.first->state;
|
||||||
|
}
|
||||||
// Check for triggered sensors
|
// Check for triggered sensors
|
||||||
if (sensor_info.first->state) { // Sensor triggered?
|
if (sensor_info.first->state) { // Sensor triggered?
|
||||||
// Skip if bypass armed home
|
// Skip if bypass armed home
|
||||||
|
|
Loading…
Reference in a new issue