Migrate logbook services to support translations (#96341)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
0ca8a26184
commit
cbddade4bf
2 changed files with 26 additions and 10 deletions
|
@ -1,29 +1,19 @@
|
|||
log:
|
||||
name: Log
|
||||
description: Create a custom entry in your logbook.
|
||||
fields:
|
||||
name:
|
||||
name: Name
|
||||
description: Custom name for an entity, can be referenced with entity_id.
|
||||
required: true
|
||||
example: "Kitchen"
|
||||
selector:
|
||||
text:
|
||||
message:
|
||||
name: Message
|
||||
description: Message of the custom logbook entry.
|
||||
required: true
|
||||
example: "is being used"
|
||||
selector:
|
||||
text:
|
||||
entity_id:
|
||||
name: Entity ID
|
||||
description: Entity to reference in custom logbook entry.
|
||||
selector:
|
||||
entity:
|
||||
domain:
|
||||
name: Domain
|
||||
description: Icon of domain to display in custom logbook entry.
|
||||
example: "light"
|
||||
selector:
|
||||
text:
|
||||
|
|
26
homeassistant/components/logbook/strings.json
Normal file
26
homeassistant/components/logbook/strings.json
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"services": {
|
||||
"log": {
|
||||
"name": "Log",
|
||||
"description": "Creates a custom entry in the logbook.",
|
||||
"fields": {
|
||||
"name": {
|
||||
"name": "Name",
|
||||
"description": "Custom name for an entity, can be referenced using an `entity_id`."
|
||||
},
|
||||
"message": {
|
||||
"name": "Message",
|
||||
"description": "Message of the logbook entry."
|
||||
},
|
||||
"entity_id": {
|
||||
"name": "Entity ID",
|
||||
"description": "Entity to reference in the logbook entry."
|
||||
},
|
||||
"domain": {
|
||||
"name": "Domain",
|
||||
"description": "Determines which icon is used in the logbook entry. The icon illustrates the integration domain related to this logbook entry."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue