From 5981185fe11789163311f986e27f96b2a65bd03e Mon Sep 17 00:00:00 2001 From: Chris <52449218+shadow578@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:37:54 +0200 Subject: [PATCH] remove commented-out local playback code in i2s-audo media_player Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- .../i2s_audio/media_player/i2s_audio_media_player.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/esphome/components/i2s_audio/media_player/i2s_audio_media_player.cpp b/esphome/components/i2s_audio/media_player/i2s_audio_media_player.cpp index f811f1432d..556e1fbc92 100644 --- a/esphome/components/i2s_audio/media_player/i2s_audio_media_player.cpp +++ b/esphome/components/i2s_audio/media_player/i2s_audio_media_player.cpp @@ -282,15 +282,6 @@ bool I2SAudioMediaPlayer::connecttouri_(const std::string &uri) { return this->audio_->connecttohost(uri.c_str()); } - // local file? - if (uri.find("file://", 0) == 0) { - // format: file:// - // const std::string path = uri.substr(7); - // ESP_LOGD(TAG, "ConnectTo File '%s'", path.c_str()); - // return this->audio_->connecttoFS(?, uri.c_str() + 7); - return false; - } - // text to speech? if (uri.find("tts://", 0) == 0) { // format: tts://: