Migrate logbook services to support translations (#96341)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Franck Nijhof 2023-07-12 13:44:15 +02:00 committed by GitHub
parent 0ca8a26184
commit cbddade4bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 10 deletions

View file

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

View 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."
}
}
}
}
}