mirror of
https://github.com/esphome/esphome.git
synced 2025-10-18 01:33:51 +01:00
Always use brackets around single log macros (#4072)
This commit is contained in:
@@ -53,12 +53,15 @@ void SlowPWMOutput::loop() {
|
||||
void SlowPWMOutput::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Slow PWM Output:");
|
||||
LOG_PIN(" Pin: ", this->pin_);
|
||||
if (this->state_change_trigger_)
|
||||
if (this->state_change_trigger_) {
|
||||
ESP_LOGCONFIG(TAG, " State change automation configured");
|
||||
if (this->turn_on_trigger_)
|
||||
}
|
||||
if (this->turn_on_trigger_) {
|
||||
ESP_LOGCONFIG(TAG, " Turn on automation configured");
|
||||
if (this->turn_off_trigger_)
|
||||
}
|
||||
if (this->turn_off_trigger_) {
|
||||
ESP_LOGCONFIG(TAG, " Turn off automation configured");
|
||||
}
|
||||
ESP_LOGCONFIG(TAG, " Period: %d ms", this->period_);
|
||||
ESP_LOGCONFIG(TAG, " Restart cycle on state change: %s", YESNO(this->restart_cycle_on_state_change_));
|
||||
LOG_FLOAT_OUTPUT(this);
|
||||
|
Reference in New Issue
Block a user