mirror of
https://github.com/esphome/esphome.git
synced 2025-11-20 16:55:49 +00:00
Reduce ESP_LOGCONFIG calls (#9026)
This commit is contained in:
@@ -189,8 +189,10 @@ void Fan::dump_traits_(const char *tag, const char *prefix) {
|
||||
auto traits = this->get_traits();
|
||||
|
||||
if (traits.supports_speed()) {
|
||||
ESP_LOGCONFIG(tag, "%s Speed: YES", prefix);
|
||||
ESP_LOGCONFIG(tag, "%s Speed count: %d", prefix, traits.supported_speed_count());
|
||||
ESP_LOGCONFIG(tag,
|
||||
"%s Speed: YES\n"
|
||||
"%s Speed count: %d",
|
||||
prefix, prefix, traits.supported_speed_count());
|
||||
}
|
||||
if (traits.supports_oscillation()) {
|
||||
ESP_LOGCONFIG(tag, "%s Oscillation: YES", prefix);
|
||||
|
||||
Reference in New Issue
Block a user