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 b2cb7dfac2..bf1338edbe 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 @@ -148,7 +148,7 @@ void TemplateAlarmControlPanel::loop() { continue; } - switch(sensor_info.second.type) { + switch (sensor_info.second.type) { case ALARM_SENSOR_TYPE_INSTANT: instant_sensor_not_ready = true; break;