From 75ed7b2fa2c55dce08c6e6457643f80582e09bfe Mon Sep 17 00:00:00 2001 From: Norbert Rittel Date: Fri, 27 Feb 2026 08:46:08 +0100 Subject: [PATCH] Improve descriptions of `schlage` actions (#164299) --- homeassistant/components/schlage/strings.json | 12 ++++++------ tests/components/schlage/test_lock.py | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/schlage/strings.json b/homeassistant/components/schlage/strings.json index 3710fd7e3f7..48f0232eb75 100644 --- a/homeassistant/components/schlage/strings.json +++ b/homeassistant/components/schlage/strings.json @@ -74,31 +74,31 @@ }, "services": { "add_code": { - "description": "Add a PIN code to a lock.", + "description": "Adds a PIN code to a lock.", "fields": { "code": { - "description": "The PIN code to add. Must be unique to lock and be between 4 and 8 digits long.", + "description": "The PIN code to add. Must be unique to the lock and be between 4 and 8 digits long.", "name": "PIN code" }, "name": { - "description": "Name for PIN code. Must be case insensitively unique to lock.", + "description": "Name for PIN code. Must be case insensitively unique to the lock.", "name": "PIN name" } }, "name": "Add PIN code" }, "delete_code": { - "description": "Delete a PIN code from a lock.", + "description": "Deletes a PIN code from a lock.", "fields": { "name": { "description": "Name of PIN code to delete.", - "name": "PIN name" + "name": "[%key:component::schlage::services::add_code::fields::name::name%]" } }, "name": "Delete PIN code" }, "get_codes": { - "description": "Retrieve all PIN codes from the lock.", + "description": "Retrieves all PIN codes from a lock.", "name": "Get PIN codes" } } diff --git a/tests/components/schlage/test_lock.py b/tests/components/schlage/test_lock.py index 1d801154f0a..378b49bfb6b 100644 --- a/tests/components/schlage/test_lock.py +++ b/tests/components/schlage/test_lock.py @@ -175,7 +175,7 @@ async def test_add_code_service_duplicate_name( with pytest.raises( ServiceValidationError, - match='A PIN code with the name "test_user" already exists on the lock.', + match='A PIN code with the name "test_user" already exists on the lock', ) as exc_info: await hass.services.async_call( DOMAIN, @@ -206,7 +206,7 @@ async def test_add_code_service_duplicate_code( with pytest.raises( ServiceValidationError, - match="A PIN code with this value already exists on the lock.", + match="A PIN code with this value already exists on the lock", ) as exc_info: await hass.services.async_call( DOMAIN,