mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Migrate lock services to support translations (#96416)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
80eb4747ff
commit
5792301cf1
@ -1,22 +1,16 @@
|
||||
# Describes the format for available lock services
|
||||
|
||||
lock:
|
||||
name: Lock
|
||||
description: Lock all or specified locks.
|
||||
target:
|
||||
entity:
|
||||
domain: lock
|
||||
fields:
|
||||
code:
|
||||
name: Code
|
||||
description: An optional code to lock the lock with.
|
||||
example: 1234
|
||||
selector:
|
||||
text:
|
||||
|
||||
open:
|
||||
name: Open
|
||||
description: Open all or specified locks.
|
||||
target:
|
||||
entity:
|
||||
domain: lock
|
||||
@ -24,22 +18,16 @@ open:
|
||||
- lock.LockEntityFeature.OPEN
|
||||
fields:
|
||||
code:
|
||||
name: Code
|
||||
description: An optional code to open the lock with.
|
||||
example: 1234
|
||||
selector:
|
||||
text:
|
||||
|
||||
unlock:
|
||||
name: Unlock
|
||||
description: Unlock all or specified locks.
|
||||
target:
|
||||
entity:
|
||||
domain: lock
|
||||
fields:
|
||||
code:
|
||||
name: Code
|
||||
description: An optional code to unlock the lock with.
|
||||
example: 1234
|
||||
selector:
|
||||
text:
|
||||
|
@ -34,5 +34,37 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"lock": {
|
||||
"name": "Lock",
|
||||
"description": "Locks a lock.",
|
||||
"fields": {
|
||||
"code": {
|
||||
"name": "Code",
|
||||
"description": "Code used to lock the lock."
|
||||
}
|
||||
}
|
||||
},
|
||||
"open": {
|
||||
"name": "Open",
|
||||
"description": "Opens a lock.",
|
||||
"fields": {
|
||||
"code": {
|
||||
"name": "[%key:component::lock::services::lock::fields::code::name%]",
|
||||
"description": "Code used to open the lock."
|
||||
}
|
||||
}
|
||||
},
|
||||
"unlock": {
|
||||
"name": "Unlock",
|
||||
"description": "Unlocks a lock.",
|
||||
"fields": {
|
||||
"code": {
|
||||
"name": "[%key:component::lock::services::lock::fields::code::name%]",
|
||||
"description": "Code used to unlock the lock."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user