mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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
|
# Describes the format for available lock services
|
||||||
|
|
||||||
lock:
|
lock:
|
||||||
name: Lock
|
|
||||||
description: Lock all or specified locks.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: lock
|
domain: lock
|
||||||
fields:
|
fields:
|
||||||
code:
|
code:
|
||||||
name: Code
|
|
||||||
description: An optional code to lock the lock with.
|
|
||||||
example: 1234
|
example: 1234
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
|
|
||||||
open:
|
open:
|
||||||
name: Open
|
|
||||||
description: Open all or specified locks.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: lock
|
domain: lock
|
||||||
@ -24,22 +18,16 @@ open:
|
|||||||
- lock.LockEntityFeature.OPEN
|
- lock.LockEntityFeature.OPEN
|
||||||
fields:
|
fields:
|
||||||
code:
|
code:
|
||||||
name: Code
|
|
||||||
description: An optional code to open the lock with.
|
|
||||||
example: 1234
|
example: 1234
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
|
|
||||||
unlock:
|
unlock:
|
||||||
name: Unlock
|
|
||||||
description: Unlock all or specified locks.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: lock
|
domain: lock
|
||||||
fields:
|
fields:
|
||||||
code:
|
code:
|
||||||
name: Code
|
|
||||||
description: An optional code to unlock the lock with.
|
|
||||||
example: 1234
|
example: 1234
|
||||||
selector:
|
selector:
|
||||||
text:
|
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