Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust logbook message for assist pipeline recording #104105

Merged
merged 2 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/assist_pipeline/logbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def async_describe_logbook_event(event: Event) -> dict[str, str]:
if device:
device_name = device.name_by_user or device.name or "Unknown device"

message = f"{device_name} started recording audio"
message = f"{device_name} captured an audio sample"

return {
LOGBOOK_ENTRY_NAME: device_name,
Expand Down
2 changes: 1 addition & 1 deletion tests/components/assist_pipeline/test_logbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ async def test_recording_event(
assert event[logbook.LOGBOOK_ENTRY_NAME] == "My Satellite"
assert event[logbook.LOGBOOK_ENTRY_DOMAIN] == assist_pipeline.DOMAIN
assert (
event[logbook.LOGBOOK_ENTRY_MESSAGE] == "My Satellite started recording audio"
event[logbook.LOGBOOK_ENTRY_MESSAGE] == "My Satellite captured an audio sample"
)