mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
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
@ -1,29 +1,19 @@
|
|||||||
log:
|
log:
|
||||||
name: Log
|
|
||||||
description: Create a custom entry in your logbook.
|
|
||||||
fields:
|
fields:
|
||||||
name:
|
name:
|
||||||
name: Name
|
|
||||||
description: Custom name for an entity, can be referenced with entity_id.
|
|
||||||
required: true
|
required: true
|
||||||
example: "Kitchen"
|
example: "Kitchen"
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
message:
|
message:
|
||||||
name: Message
|
|
||||||
description: Message of the custom logbook entry.
|
|
||||||
required: true
|
required: true
|
||||||
example: "is being used"
|
example: "is being used"
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
entity_id:
|
entity_id:
|
||||||
name: Entity ID
|
|
||||||
description: Entity to reference in custom logbook entry.
|
|
||||||
selector:
|
selector:
|
||||||
entity:
|
entity:
|
||||||
domain:
|
domain:
|
||||||
name: Domain
|
|
||||||
description: Icon of domain to display in custom logbook entry.
|
|
||||||
example: "light"
|
example: "light"
|
||||||
selector:
|
selector:
|
||||||
text:
|
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…
x
Reference in New Issue
Block a user