Adjust logbook message for assist pipeline recording (#104105)

* Adjust logbook message

* Fix test
This commit is contained in:
Michael Hansen 2023-11-16 22:39:08 -06:00 committed by GitHub
parent d5885e0da2
commit f605df5bf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ def async_describe_events(
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,

View file

@ -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"
)