Update ESPHome voice assistant pipeline log warning (#123269)

pull/119075/head^2
Jesse Hills 2024-08-07 20:17:01 +12:00 committed by GitHub
parent 27b9965b10
commit bf28419851
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -346,7 +346,7 @@ class ESPHomeManager:
) -> int | None:
"""Start a voice assistant pipeline."""
if self.voice_assistant_pipeline is not None:
_LOGGER.warning("Voice assistant UDP server was not stopped")
_LOGGER.warning("Previous Voice assistant pipeline was not stopped")
self.voice_assistant_pipeline.stop()
self.voice_assistant_pipeline = None

View File

@ -1229,7 +1229,7 @@ async def test_manager_voice_assistant_handlers_api(
"", 0, None, None
)
assert "Voice assistant UDP server was not stopped" in caplog.text
assert "Previous Voice assistant pipeline was not stopped" in caplog.text
await device.mock_voice_assistant_handle_audio(bytes(_ONE_SECOND))