Update ESPHome voice assistant pipeline log warning (#123269)
parent
27b9965b10
commit
bf28419851
|
@ -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
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue