mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Use common states for "Normal" and "Low" in binary_sensor
(#142465)
* Use common state for "Normal" in `binary_sensor` Replace the "Normal" string for `battery` and the two references to it from `heat` and `cold` to it with the common state. * Use common state for "Low" in `binary_sensor`
This commit is contained in:
parent
a026820483
commit
2818f74634
@ -124,8 +124,8 @@
|
|||||||
"battery": {
|
"battery": {
|
||||||
"name": "Battery",
|
"name": "Battery",
|
||||||
"state": {
|
"state": {
|
||||||
"off": "Normal",
|
"off": "[%key:common::state::normal%]",
|
||||||
"on": "Low"
|
"on": "[%key:common::state::low%]"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"battery_charging": {
|
"battery_charging": {
|
||||||
@ -145,7 +145,7 @@
|
|||||||
"cold": {
|
"cold": {
|
||||||
"name": "Cold",
|
"name": "Cold",
|
||||||
"state": {
|
"state": {
|
||||||
"off": "[%key:component::binary_sensor::entity_component::battery::state::off%]",
|
"off": "[%key:common::state::normal%]",
|
||||||
"on": "Cold"
|
"on": "Cold"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -180,7 +180,7 @@
|
|||||||
"heat": {
|
"heat": {
|
||||||
"name": "Heat",
|
"name": "Heat",
|
||||||
"state": {
|
"state": {
|
||||||
"off": "[%key:component::binary_sensor::entity_component::battery::state::off%]",
|
"off": "[%key:common::state::normal%]",
|
||||||
"on": "Hot"
|
"on": "Hot"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user