mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-01 18:48:28 +02:00
Always use brackets around single log macros (#4072)
This commit is contained in:
@@ -92,10 +92,12 @@ void TuyaLight::setup() {
|
||||
|
||||
void TuyaLight::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "Tuya Dimmer:");
|
||||
if (this->dimmer_id_.has_value())
|
||||
if (this->dimmer_id_.has_value()) {
|
||||
ESP_LOGCONFIG(TAG, " Dimmer has datapoint ID %u", *this->dimmer_id_);
|
||||
if (this->switch_id_.has_value())
|
||||
}
|
||||
if (this->switch_id_.has_value()) {
|
||||
ESP_LOGCONFIG(TAG, " Switch has datapoint ID %u", *this->switch_id_);
|
||||
}
|
||||
if (this->rgb_id_.has_value()) {
|
||||
ESP_LOGCONFIG(TAG, " RGB has datapoint ID %u", *this->rgb_id_);
|
||||
} else if (this->hsv_id_.has_value()) {
|
||||
|
||||
Reference in New Issue
Block a user