From 8a6427ef7e428d3b2553b861bdfa12975911e770 Mon Sep 17 00:00:00 2001 From: Kevin Ahrendt Date: Thu, 24 Oct 2024 20:33:21 +0000 Subject: [PATCH] clang-tidy fix --- esphome/components/nabu/nabu_media_player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/nabu/nabu_media_player.cpp b/esphome/components/nabu/nabu_media_player.cpp index 0bd4854ae6..fb2c3e33b3 100644 --- a/esphome/components/nabu/nabu_media_player.cpp +++ b/esphome/components/nabu/nabu_media_player.cpp @@ -283,11 +283,12 @@ void NabuMediaPlayer::watch_media_commands_() { void NabuMediaPlayer::watch_mixer_() { TaskEvent event; if (this->audio_mixer_ != nullptr) { - while (this->audio_mixer_->read_event(&event)) + while (this->audio_mixer_->read_event(&event)) { if (event.type == EventType::WARNING) { ESP_LOGD(TAG, "Mixer encountered an error: %s", esp_err_to_name(event.err)); this->status_set_error(); } + } } }