mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Update ESPHome voice assistant pipeline log warning (#123269)
This commit is contained in:
parent
27b9965b10
commit
bf28419851
@ -346,7 +346,7 @@ class ESPHomeManager:
|
|||||||
) -> int | None:
|
) -> int | None:
|
||||||
"""Start a voice assistant pipeline."""
|
"""Start a voice assistant pipeline."""
|
||||||
if self.voice_assistant_pipeline is not None:
|
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.stop()
|
||||||
self.voice_assistant_pipeline = None
|
self.voice_assistant_pipeline = None
|
||||||
|
|
||||||
|
@ -1229,7 +1229,7 @@ async def test_manager_voice_assistant_handlers_api(
|
|||||||
"", 0, None, None
|
"", 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))
|
await device.mock_voice_assistant_handle_audio(bytes(_ONE_SECOND))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user