Migrate number services to support translations (#96343)

This commit is contained in:
Franck Nijhof 2023-07-11 21:52:25 +02:00 committed by GitHub
parent bc9b9048f0
commit 91273481a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View File

@ -1,15 +1,11 @@
# Describes the format for available Number entity services
set_value:
name: Set
description: Set the value of a Number entity.
target:
entity:
domain: number
fields:
value:
name: Value
description: The target value the entity should be set to.
example: 42
selector:
text:

View File

@ -154,5 +154,17 @@
"wind_speed": {
"name": "[%key:component::sensor::entity_component::wind_speed::name%]"
}
},
"services": {
"set_value": {
"name": "Set",
"description": "Sets the value of a number.",
"fields": {
"value": {
"name": "Value",
"description": "The target value to set."
}
}
}
}
}