mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Adjust logbook message for assist pipeline recording (#104105)
* Adjust logbook message * Fix test
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
Reference in New Issue
Block a user