From f605df5bf285d1a385b03c2aa3ab0f8af8b5b2a0 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Thu, 16 Nov 2023 22:39:08 -0600 Subject: [PATCH] Adjust logbook message for assist pipeline recording (#104105) * Adjust logbook message * Fix test --- homeassistant/components/assist_pipeline/logbook.py | 2 +- tests/components/assist_pipeline/test_logbook.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/assist_pipeline/logbook.py b/homeassistant/components/assist_pipeline/logbook.py index f2cfb8d3d5e..0c00c57adb9 100644 --- a/homeassistant/components/assist_pipeline/logbook.py +++ b/homeassistant/components/assist_pipeline/logbook.py @@ -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, diff --git a/tests/components/assist_pipeline/test_logbook.py b/tests/components/assist_pipeline/test_logbook.py index 6a997236f1c..c1e0633ed57 100644 --- a/tests/components/assist_pipeline/test_logbook.py +++ b/tests/components/assist_pipeline/test_logbook.py @@ -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" )