Skip to content

Commit

Permalink
Update ESPHome voice assistant pipeline log warning (#123269)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored and frenck committed Aug 7, 2024
1 parent b0269fa commit ad674a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/esphome/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ async def _handle_pipeline_start(
) -> 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

Expand Down
2 changes: 1 addition & 1 deletion tests/components/esphome/test_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit ad674a1

Please sign in to comment.