1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-02 00:20:30 +01:00

Improve descriptions of schlage actions (#164299)

This commit is contained in:
Norbert Rittel
2026-02-27 08:46:08 +01:00
committed by GitHub
parent e63e54820c
commit 75ed7b2fa2
2 changed files with 8 additions and 8 deletions

View File

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

View File

@@ -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,