Adjust logbook message for assist pipeline recording (#104105)
* Adjust logbook message * Fix test
This commit is contained in:
parent
d5885e0da2
commit
f605df5bf2
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue