mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 02:37:50 +00:00
Migrate number services to support translations (#96343)
This commit is contained in:
parent
bc9b9048f0
commit
91273481a8
@ -1,15 +1,11 @@
|
|||||||
# Describes the format for available Number entity services
|
# Describes the format for available Number entity services
|
||||||
|
|
||||||
set_value:
|
set_value:
|
||||||
name: Set
|
|
||||||
description: Set the value of a Number entity.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
domain: number
|
domain: number
|
||||||
fields:
|
fields:
|
||||||
value:
|
value:
|
||||||
name: Value
|
|
||||||
description: The target value the entity should be set to.
|
|
||||||
example: 42
|
example: 42
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
|
@ -154,5 +154,17 @@
|
|||||||
"wind_speed": {
|
"wind_speed": {
|
||||||
"name": "[%key:component::sensor::entity_component::wind_speed::name%]"
|
"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."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user